簡體   English   中英

更新語句中的MySQL錯誤1064

[英]MySQL error 1064 in update statement

mysql>更新表product_tb set quantity = 90其中pid = 2;

錯誤1064(42000):您的SQL語法有錯誤; 查看與您的MySQL服務器版本對應的手冊,以便在'table product_tb set quantity = 90附近使用正確的語法,其中pid = 2'在第1行

從查詢中刪除table關鍵字,因為這里不需要它。

嘗試這個::

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

Update product_tb set quantity=90 where pid=2;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM