我想在MySQL數據庫中插入通過文本文件中的數據和收到此錯誤得到錯誤,同時通過文件在MySQL中插入數據
1148: The used command is not allowed with this MySQL version
ADOConnection._Execute(LOAD DATA LOCAL INFILE '/var/www/in2fonenew/inv/test.txt'
INTO TABLE tbl_transaction FIELDS TERMINATED BY '||' enclosed by '`..., false)
並且查詢下面提到爲了這個目的
$sql="LOAD DATA LOCAL INFILE '".$docroot."/inv/".$dbfile."' INTO TABLE
tbl_transaction FIELDS TERMINATED BY '||' enclosed by '`' LINES TERMINATED
BY '|||||' (field1,field2,field3,field4,field5,field6)";
我做了什麼錯在這裏?