update 语句:从一个表中更新另一个表的字段
By admin
- One minute read - 24 wordsupdate table_all a set a.phoneNo=b.phoneNo from table_new b where a.name =b.name
update table_all set table_all.phoneNo = (select table_new.phoneNo from table_new where table_all.name = table_new.name)