1、假如A表存在
1 insert into A(Name) select Name from B
2、假如A表不存在
select a,b,c into A from B
3、
insert into ADB.[dbo].A(a,b,c) select a,b,c from BDB.[dbo].B
1、假如A表存在
1 insert into A(Name) select Name from B
2、假如A表不存在
select a,b,c into A from B
3、
insert into ADB.[dbo].A(a,b,c) select a,b,c from BDB.[dbo].B