create table newtablename as select *  from oldtablename

解决方案 »

  1.   

    create table newtablename as select * from oldtablename;创建数据库链接,dblinkcreate table newtablename as select * from oldtablename@link_name;
      

  2.   

    create table tablename as 
    select * from tablename1;
      

  3.   

    两台机器上的数据,要用数据链
    create database link LINKNAME
      connect to username identified by password
      using 'db';create table tablename as 
    select * from tablename1@linkname