sql将一个表中的某一列数据更新到另一个表中
时间:2015-07-21 09:04:15
收藏:0
阅读:222
表1 table1
字段 id value
1 value1
2 value2
表2 table2
字段 id value
1 value3
2 value4
将表2中的value字段更新到表1中
SQL语句:
update a
set a.value=b.value
from table1 a,table2 b where a.id=b.id
原文:http://www.cnblogs.com/Kevin1002/p/4663342.html
评论(0)