update a set col1=b.col1,col2=b.col2,col3=b.col3
from table1,(select col1,col2,col3 from table2 where id = 1)b
where a.id=1 --如果只是更新 table1中与table2 id相同的
update table1 set col1=(select col1 from table2 where id = 1)
,col2=(select col1 from table2 where id = 1)
,col3=(select col1 from table2 where id = 1)