复制表结构,拷贝表数据
select * into bb from dbo.UserDetail where 1<>1 --复制表结构
select * into bb from dbo.UserDetail where 1=1 --复制表结构和数据
insert into b(a,b,c) select e,d,f from a --拷贝表数据
select * into bb from dbo.UserDetail where 1<>1 --复制表结构
select * into bb from dbo.UserDetail where 1=1 --复制表结构和数据
insert into b(a,b,c) select e,d,f from a --拷贝表数据