當我嘗試在一個CSV文件中的數據更新到MySQL數據庫即時得到以下這些錯誤,可以u人幫我出錯誤#1064:您的SQL語法錯誤;檢查對應於你的MySQL服務器版本正確的語法手冊
UPDATE into 'td_demo'('Vehicle_description','Status','Conditions', 'Wholesale','Pickup_Location','Year','VIN','Make','Body_Style','Model','Doors','Trim_Level','Vehicle_Type','Odometer','Salvage','As_Is','Fuel_Type','Title_State','Engine','Title_Status','Displacement','Drive_Train', 'Transmission','Interior_Type','Exterior_Color','Top_Type','Interior_Color','Stereo','Window_Sticker','Airbags','Equipments','Image_directory') values('2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','2','')
你的SQL語法有錯誤;檢查與您的MySQL服務器版本相對應的手冊,以便在第1行的'into'td_excel'('Vehicle_description','Status','Conditions','Wholesale','Pickup')附近使用正確的語法**
得到表和列名稱去掉了所有單引號。 –
'UPDATE into ...'是無效的sql。請看下面的文檔:http://dev.mysql.com/doc/refman/5.0/en/update.html – arkascha
@arkascha:謝謝你會試試 – vivek