I am trying to update rows in mysql but I have to use for loop for multiple update for single value mysql query is
update table set column1='100' where id =1
update table set column1='100' where id =6
update table set column1='100' where id =14
I am using for loop for running query multiple times with different id, I want to run single query for update all rows. Is that possible?
i want to do something like that
update table set column1='100' where id=1,6,14;