日期:2014-05-18  浏览次数:20426 次

数据库表的结构复制如何实现????
在同一个数据库中如何将一个表及结构复制一个新表只是表名不同,

------解决方案--------------------
select * into newtable from tablename
where 1 <> 1
------解决方案--------------------
select top 0 * into aa from bb
------解决方案--------------------
select * into 表2 from 表 where 1 <> 1
------解决方案--------------------
要数据和主键:
select * into newtable from tablename