DB テーブルの値を更新する必要があります。以下は、私が同じために書いたクエリです。
update product set product_name='AAAA' where product_id='1'
update product set product_name='BBB' where product_id='2'
update product set product_name='CCC' where product_id='3'
update product set product_name='DDDD' where product_id='4'
上記のステートメントを更新すると、4 行目だけが更新されます。UPDATE コマンドを一括で実行する方法を検索しましたが、まだヘルプが見つかりませんでした。
上記のすべてのコマンドが最後のステートメントで上書きされることなく実行されるようにする方法を教えてください。
mySql ではなく Sqlite を使用しています。