SQL Server同一表不同列数据同步

直接上脚本

update table set a=b where a=xxx

table==表名称

a==需要同步的列

b==数据源列,就是a列要的数据是b列的数据

where 条件。不加where则整个表同步

posted @ 2019-04-11 10:20  刘二五  阅读(400)  评论(0编辑  收藏  举报