假设表table1的字段name,需要跟表table2的字段name值同步,那么可以这样写sql语句
update table1 set name=a.name
from table2 a
where a.id=table1.id
把一个表的某个字段值改写到另外一张表的某个字段
猜你喜欢
转载自marrymyy.iteye.com/blog/2222534
今日推荐
周排行