create table t2 
as
select *
from t1
where 1 = 2;

解决方案 »

  1.   

    COPY TO username/password@servicename CREATE tablename USING select * from tablename
      

  2.   

    建一个和a表结构一样的空表 
    SQL> create table b as select * from a where 1=2; 
    SQL> create table b(b1,b2,b3) as select a1,a2,a3 from a where 1=2; 
      

  3.   

    要复制与先前的结构和内容都一样的表:
    create table table2 as select * from table1;
    要复制与先前结构一样,但内容为空的表:
    create table table3 as select * from table1 where 1=2;
      

  4.   

    Notes:If table have some indexes,not include primary,unique etc,
    index can't be copy by new table.
      

  5.   

    ORACLE8以上可以用COPY
    或者CREATE XX AS SELECT * FROM XXXX WHERE 1=2