I am using the following code to load the csv into the database:—
LOAD DATA LOCAL INFILE ‘C:\Documents and Settings\vishu.singhvi\Desktop\5columns.csv’
INTO TABLE digite61new.copy_ENTERPRISEUSER FIELDS TERMINATED BY ‘,’ ENCLOSED BY ‘”‘ LINES TERMINATED BY
‘\n’ IGNORE 1 LINES;
But its showing the error:–
Incorrect syntax near ‘C:\Documents and Settings\vishu.singhvi\Desktop\5columns.csv’
Please help.
On SQL Server this syntax is not supported.
On MySQL I don’t think it should give the error you see, but your filename is wrong.
From the documentation: