想知道是否有人可以在此找到错误:
$sqlinsert = "LOAD DATA LOCAL INFILE
\'$target_path\' INTO TABLE 'db_usergroup'
FIELDS TERMINATED BY \',\' ENCLOSED BY \'\"\' ESCAPED BY \'\\\\\'
LINES TERMINATED BY \'\\r\\n\'";
$target_path
其确切名称略有不同,但示例如下:
temp/24_09_12_16_57_27_invoice_example.csv
我收到此错误:
An error occurred. The file could not be imported.
Error with MySQL Query: 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
'\'temp/24_09_12_16_57_27_invoice_example.csv' INTO TABLE
'db_usergroup' FIELDS T' at line 1
非常感谢所有帮助。