日期:2014-05-17  浏览次数:20475 次

各位大大们,这个问题的语句怎么写啊
将table1表a字段修改为table2表id字段相同的记录行b字段值

------解决方案--------------------
update table1 set a=table2.b
from table2
where table1.id=table2.id
------解决方案--------------------
update A set a=B.b from 
table1 A,table B
where a.id=b.id