私はこれらのようなクエリを持っています:
update table1 set quantity=(quantity)+3 where productsid=1
update table1 set quantity=(quantity)+4 where productsid=2
update table1 set quantity=(quantity)+5 where productsid=3
update table1 set quantity=(quantity)+6 where productsid=4
update table1 set quantity=(quantity)+1 where productsid=5
update table1 set quantity=(quantity)+3 where productsid=6
update table1 set quantity=(quantity)+2 where productsid=7
しかし、私はsqlceに取り組んでおり、すべてのクエリを送信できず、1つずつ送信するのに時間がかかるため、動的クエリが必要です。これらのクエリとして機能する唯一のクエリを取得します。多分ケースを使用しますか?