跨越数据库 复制表字段(不覆盖)

来源:互联网 发布:iphone蓝牙共享网络 编辑:程序博客网 时间:2024/04/26 08:01
insert into 原始表明([字段名]

select [要复制的表名] from 数据库名.表名

--在当前要接收数据的数据库下执行

Example :

insert into dbo.test([name]

select [name] from MSPetShop4Services.dbo.test_2

 
原创粉丝点击