我有這個文件在csv嘗試導入到使用加載數據infile語法。但是我在語法上遇到了這個錯誤。 我試過每一件事,但沒有運氣。任何幫助將不勝感激。使用加載數據本地infile使用c錯誤#
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
沒有運氣隊友還是同樣的錯誤取代
\r\n
– preethi