在MSSQL中:Select * into Tn From T1, 可以将T1复制一个完全相同新Table:Tn.
那么在Oracle该如何操作?

解决方案 »

  1.   

    --等同
    Create table Tn 
    as 
     Select * from T1 ;
      

  2.   

    oracle好像没有,即使是上面的Create table Tn  
    as  
     Select * from T1 ;
    也只能起到备份数据的作用,并没有复制一个一摸一样的表,包括索引,约束等。
      

  3.   

    Select * into Tn From T1在oracle里就是
    Create table Tn  
    as  
     Select * from T1 ;
      

  4.   

    Create table 
    Tn   
    as   
    Select * from T1 ;
      

  5.   

    create table name
    as
    select ....
      

  6.   


    Create table Tn   
    as   
    Select * from T1 ;
      

  7.   

    create table scott.bk_emp
    as
    select * from scott.emp
      

  8.   

    一摸一样不可能的,起码索引、约束的名字不一样,所以oracle里面只有数据,索引、约束要自己建