SQL 兩表關聯更新UPDATE (用一個表更新另一個表)
方法一:
update table1 set field1=table2.field1 from table2
where table1.id=table2.id--簡寫
update t1 set t1.c2 = t2.c2 from t2 where t1.c1 = t2.c1方法二:
update table1
set field1=(select top 1 field1 from table2 where table2.id=table1.id)where table1.id in (condition)
玉環人才吧
玉環人才網
玉環人力網
玉環招聘網
三支腳人才網
玉環人力網(又名玉環人才網)是玉環人才吧旗下一流的玉環人力資源招聘行業服務品牌,匯集海量玉環人才,開放玉環人才簡歷和玉環崗位,提供玉環招聘網,玉環人才市場動態行情,玉環勞務派遣,玉環培訓等,是玉環最大的人才網站。
浙公網安備 33010602011771號