a表得1條記錄數值需要更新成和b表的1條記錄數值相同
------解决方案--------------------
- SQL code
update aset a.col = b.colfrom b
------解决方案--------------------
两表通过什么关联?
update a set a.name=b.name from b where a.id=b.id
------解决方案--------------------
update aset a.col = b.colfrom b
------解决方案--------------------
两表通过什么关联?
update a set a.name=b.name from b where a.id=b.id
------解决方案--------------------