把一个表的结构复制到另一个表的语句是什么?
我忘记了
select * into table2 from table1
隻復制表結構 應該這樣 select * into 新表 from 舊表 where 1<>1
select * into newtable from oldtable where 1<>1
的确,
select * into table2 from table1
这是复制数据和结构。
如果光是表结构的话,常用的有
select * into table2 from table1 Where 1<>1
或者
select * into table2 from table1 Where 1=2
select * into table2 from table1 where 1<>1