在oracle中将查询到的数据插入到另一个表中
insert into TAB_USERROLE(USERCODE,ROLECODE)
select USERCODE,'0000001005' fromTAB_USER where USERROLE='Y'and
USERCODE not in (select USERCODE from TAB_USERROLE);
insert into TAB_USERROLE(USERCODE,ROLECODE)
select USERCODE,'0000001005' from