在oracle数据库中,用什么语句实现一个表里面的数据全部复制到另一个表里,两个表的列都是一样的。如果用HQL语言写就更好了~~

解决方案 »

  1.   

    create table2 as
    select * from table1
      

  2.   


    现在table2已经存在了,不能再重新建了~~
      

  3.   

    insert into table2  
    select * from table1
      

  4.   

    --插入全部数据
    insert into table1 
    select * from table2--给指定列插入数据
    insert into (select name from test) select ename from emp;
      

  5.   


    insert /*+ append */ into tb select * from tb2
      

  6.   

    insert into a 
    select * from b