如果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';
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';
select *
into b
from a
where to_char(tt,'YYYYMM')>='200308';
也是可以的啊!
你的方法我知道!
就可以.select * into b ...
--(想要一个什么值? 字段?)
你那个方法在oracle里面只能pl/sql过程里面使用,且b应该是实现定义的相应类型的一个变量。