转自: http://www.blogjava.net/96sd2/archive/2007/09/05/142896.html
insert into expertinfo
(expertid,expertname,expertcode,sex,enabled)
select
primarykey as expertid,
name as expertname,
'' as expertcode,
case sex when '男' then '1' when '0' then '女' end as sex,
'0' as ENABLED
from experttmp
其中primarykey 是生成主键的Oracle函数。
(expertid,expertname,expertcode,sex,enabled)
select
primarykey as expertid,
name as expertname,
'' as expertcode,
case sex when '男' then '1' when '0' then '女' end as sex,
'0' as ENABLED
from experttmp
其中primarykey 是生成主键的Oracle函数。