Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql update multiple rows

UPDATE table_name SET column1=value1, column2=value2 WHERE condition
Comment

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
Comment

PREVIOUS NEXT
Code Example
Sql :: exec procedure oracle 
Sql :: sql use not in 
Sql :: where condition in mongodb 
Sql :: how to get previous year from sysdate in oracle 
Sql :: oracle select invalid views 
Sql :: sql select inside select 
Sql :: mysql with 
Sql :: coalesce sql 
Sql :: mysql on duplicate key update get value from values 
Sql :: MySQL import data from large CSV file 
Sql :: sql to array of objects 
Sql :: get locked tables sql server 
Sql :: truncate psql 
Sql :: mysql for windows 10 64 bit 
Sql :: sub query postgres 
Sql :: select value from previous row in postgresql 
Sql :: postgres extract date from timestamp 
Sql :: how to get parent and child record in single query using sql 
Sql :: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: 
Sql :: sql unique select 
Sql :: mysql remove database 
Sql :: sql pivot rows to columns 
Sql :: mysql alter table add column 
Sql :: create db table 
Sql :: how to comment in sql 
Sql :: replace content value from old to new sql 
Sql :: json to dynamic columns in sql 
Sql :: sql limit order by 
Sql :: get month sql 
Sql :: how to find sql server installation folder 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =