我用select * from table2 into table aa 
table2是要复制的数据库源。
aa是目的数据库。
老是提示,语法错误,不知为啥?

解决方案 »

  1.   

    select * into table aa..table2 from table2 where 1=2仅复制表,但不拷贝数据
      

  2.   

    select * into table aa  from table2
      

  3.   

    select col1,col2,col3
    insert into table aa 
     from table2
      

  4.   

    1:你的语句有问题。正确的语法应该是:
        select * into aa[目的] from table2[源]  2:如果aa已经存在,上面的语句报错。即:该语句只适合aa不存在的情况下使用。
      

  5.   

    两表结构相同,  Insert into table2 select * from table1
      

  6.   

    create table a as select * from b where 1=2
    oracle的