mysql> Update table product_tb set quantity=90 where pid=2;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table product_tb set quantity=90 where pid=2' at line 1
Remove the table
keyword from the query, because it is not required here.
Try this::
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;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.