读书人

更新,该怎么解决

发布时间: 2012-04-19 14:36:43 作者: rapoo

更新
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
[解决办法]
探讨

SQL code
update a
set a.col = b.col
from b



???

读书人网 >SQL Server

热点推荐