1-- Oracle
2UPDATE table2 t2 SET (VALUE1, VALUE2) =
3 (SELECT COL1 AS VALUE1, COL1 AS VALUE2 FROM table1 t1 WHERE t1.ID = t2.ID);
4-- SQL Server
5UPDATE table2 t2 SET
6 t2.VALUE1 = t1.COL1,
7 t2.VALUE2 = t1.COL2
8FROM table1 t1
9INNER JOIN t2 ON t1.ID = t2.ID;
10-- MySQL
11UPDATE table2 t2 INNER JOIN table1 t1 USING (ID)
12SET T2.VALUE1 = t1.COL1, t2.VALUE2 = t1.COL2;
1UPDATE table-name SET column-name = value, column-name = value WHERE condition = value
1UPDATE Person.Person
2 Set FirstName = 'Kenneth'
3 ,LastName = 'Smith'
4 WHERE BusinessEntityID = 1