如果B表存在:
insert into b
select * from a where to_char(tt,'YYYYMM')>='200308';
如果B表不存在
create table b as 
select * from a where to_char(tt,'YYYYMM')>='200308';

解决方案 »

  1.   

    我记得:
    select *
    into b
    from a
    where to_char(tt,'YYYYMM')>='200308';
    也是可以的啊!
    你的方法我知道!
      

  2.   

    在 MS SQL SERVER 上你的方法可以,但是Oracle不可以。
      

  3.   

    不可能吧。按到了,ORACLE的语句功能比MS SQL SERVER 强啊!
      

  4.   

    不能这么说,只是Oracle实现你的功能的语法不一样而已,而且Oracel还有别的语法可以实现你的功能,比如copy语句。
      

  5.   

    select Max(id) into b from a where to_char(tt,'YYYYMM')>='200308';
    就可以.select * into b ...
                 --(想要一个什么值? 字段?)
      

  6.   

    想要整张表就用liaolwj(风儿)的方法.
    你那个方法在oracle里面只能pl/sql过程里面使用,且b应该是实现定义的相应类型的一个变量。