用SQL语言复制一个数据表

2383 查看

SQL复制表的几种方法:

SQL复制整张表

select * into NewTableName from OldTableName

只复制列名而不要内容

select * into NewTableName from OldTableName where 1 = 0

表间数据复制

insert into NewTableName(zt) select titile from OldTableName