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; を更新します。
エラー 1064 (42000): SQL 構文にエラーがあります。使用する正しい構文については、MySQL サーバーのバージョンに対応するマニュアルを確認してください。
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;