i have queries as these:
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
but i am working on sqlce i couldn’t send all queries, and send one for one
take much time, so i need a dynamic query, with it gets a only query with work as these queries. maybe using case?
problem was solved with 2 query and one loop for
after a loop for, query is it
and i could use
ExecuteNonQuery();and its all! only one query..