2015/06/28

Update from sqlserver example

UPDATE t
SET t.col1 = other_table.col1,
t.col2 = other_table.col2
FROM Table t INNER JOIN
OtherTable other_table ON (t.id = other_table.id)
view raw gistfile1.sql hosted with ❤ by GitHub

No comments:

Post a Comment