在SQL Sever 2000里面怎么快速新建一个与已有表结构一样的表呢

如题所述

假设原来的表名叫tabale1
新表名叫table2

create table table2 as select * from table1

然后

truncate table table2
温馨提示:答案为网友推荐,仅供参考
第1个回答  2008-03-06
直接用导入数据...可以把所有的信息都导过来.如果你不想要数据.到时候再删了就是
第2个回答  2008-03-06
假设源表为TS 新建的表为DS

select * into DS from TS where 1=0
第3个回答  2008-03-06
顶透明砂
select * into DS from TS where 1=0
另外:1=0时,表明只复制表结构
1=1时,复制带有数据表

1=0用的很好
第4个回答  2008-03-07
select * into table2 from table1

table1 是老表

table2 是新表
第5个回答  2008-03-06
up

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网