当前位置:
代码迷
>>
Sql Server
>> 各位大大们,这个有关问题的语句如何写
详细解决方案
各位大大们,这个有关问题的语句如何写
热度:
14
发布时间:
2016-04-24 21:14:49.0
各位大大们,这个问题的语句怎么写啊
将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
查看全文
相关解决方案