2014년 3월 8일 토요일

MS-SQL에서 SELECT 결과에서 UPDATE 수행하기

출처: http://stackoverflow.com/questions/2334712/update-from-select-using-sql-server

UPDATE
    Table
SET
    Table.col1 = other_table.col1,
    Table.col2 = other_table.col2
FROM
    Table
INNER JOIN
    other_table
ON
    Table.id = other_table.id

댓글 없음:

댓글 쓰기