[quote]
将一个表的结构复制到一个新表:
1、DB2中使用like语法
create table new_table like old_table;
2、Oracle\Mysql\PostgreSQL:
create table table_2
as
select * from table_1
where 1=0
将一个无结果的表复制到table_2
3、SqlServer
select *
into table_2 from table_1 where 1=3
[/quote]
将一个表的结构复制到一个新表:
1、DB2中使用like语法
create table new_table like old_table;
2、Oracle\Mysql\PostgreSQL:
create table table_2
as
select * from table_1
where 1=0
将一个无结果的表复制到table_2
3、SqlServer
select *
into table_2 from table_1 where 1=3
[/quote]