insert into a select * from b where ...

解决方案 »

  1.   

    insert into table1(col1,col2,col3,...)
    (select col1,col2,col3,... from table2 where some_condition);
      

  2.   

    insert into a select * from b where 报错ORA-00913: 值过多
      

  3.   

    那你的两个表结构不一样吧?
    可以这样:
    create table a as select * from b where ...
      

  4.   

    把符合A的列从B中SELECT出来,再INSERT
      

  5.   

    晕.同样的一个tablecreat改了个表名.居然建出来的表掉了个字段..谢谢大家了