I want to insert large number of rows from csv into sql database but when I use the code below
BULK INSERT Sales
FROM 'C:\1500000 Sales Records.csv'
WITH (FIRSTROW = 2,
FIELDTERMINATOR = ',',
ROWTERMINATOR='\n' );
It gives the following error
BULK is not valid at this position, expecting EOF, ';' I am using MYSQL8.0 DB and first I created table with create table command and then I was trying to bulk insert the data from csv