數據更新a表得1條記錄數值需要更新成和b表的1條記錄數值相同[解决办法]SQL codeupdate aset a.col b.col
數據更新
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
[解决办法]
數據更新
a表得1條記錄數值需要更新成和b表的1條記錄數值相同
[解决办法]
update aset a.col = b.colfrom b
[解决办法]
两表通过什么关联?
update a set a.name=b.name from b where a.id=b.id
[解决办法]