2013-07-10 99 views
0

mysql>更新表product_tb set quantity = 90其中pid = 2;更新語句中的MySQL錯誤1064

錯誤1064(42000):您的SQL語法錯誤;檢查 對應於你的MySQL服務器版本的使用近「表 product_tb設定量= 90其中,pid = 2」位於第1行

+0

刪除 –

+0

LOL ....感謝 '表' 字.... –

回答

0
Update table product_tb set quantity=90 where pid=2; 

Update product_tb set quantity=90 where pid=2; 
2

移除正確的語法手動查詢中的table關鍵字,因爲這裏不需要。

試試這個::

Update product_tb set quantity=90 where pid=2