for ACCESS :
update a, b set a.name=b.name1 where a.id=b.id
for SQL Server:
"update a set a.name=b.name1 from a,b where a.id=b.id"
update a set a.status=b.status
from table1 a,table2 b
where a.id1=b.id1
update a inner join b on a.a1=b.b1 set a.a2=b.b2条件
update table1 set a.status = b.status
from table1 a inner join table2 b
on a.idl = b.idl
http://topic.youkuaiyun.com/t/20041013/14/3451961.html
http://www.cnblogs.com/hanguoji/archive/2007/02/01/636723.aspx
本文详细介绍了SQL Server中使用更新语句的方法,包括不同表之间的更新操作,如使用内连接进行更新,以及如何设置更新条件等实用技巧。
3万+

被折叠的 条评论
为什么被折叠?



