0

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

ERROR 1064 (42000):您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在第 1 行的 'table product_tb set quantity=90 where pid=2' 附近使用正确的语法

4

2 回答 2

2

从查询中删除table关键字,因为这里不需要。

尝试这个::

Update product_tb set quantity=90 where pid=2
于 2013-07-10T06:04:44.873 回答
0
Update table product_tb set quantity=90 where pid=2;

Update product_tb set quantity=90 where pid=2;
于 2013-07-10T06:03:40.467 回答