Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
mysql> 更新表product_tb set quantity=90 where pid=2;
ERROR 1064 (42000):您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在第 1 行的 'table product_tb set quantity=90 where pid=2' 附近使用正确的语法
从查询中删除table关键字,因为这里不需要。
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;