I have this file in csv trying to import to using load data infile syntax. but I am stuck with this error in syntax. I tried every thing but no luck.Any help would be appreciated.
string strLoadData = "LOAD DATA LOCAL INFILE 'C:/xampp/htdocs/explortest.csv' INTO test.tickets FIELDS terminated by ',' ENCLOSED BY '\"' lines terminated by '\r\n' ignore 1 lines ";
ERROR
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'test.tickets FIELDS terminated by ',' ENCLOSED BY '"' lines terminated by '
'' at line 1