sql run multiple updates in one query
UPDATE table_name
SET field_name =
case field_name2
when 'value' then 'change_to'
when 'value2' then 'change_to2'
end
sql run multiple updates in one query
UPDATE table_name
SET field_name =
case field_name2
when 'value' then 'change_to'
when 'value2' then 'change_to2'
end
sql query update multiple columns
UPDATE table_name SET column1 = value1, column2 = value2,...
WHERE condition;
table_name: name of the table
column1: name of first , second, third column....
value1: new value for first, second, third column....
condition: condition to select the rows for which the
values of columns needs to be updated.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us