Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #run #multiple #updates #query
ADD COMMENT
Topic
Name
4+4 =