declare
cursor cur_test is select inte_param_inteuuid from sjzx_interface_param group by inte_param_inteuuid; //声明一个游标cur_test ,其中inte_param_inteuuid 为游标查询到的数据
begin
for c in cur_test loop //对cur_test 进行循环遍历,c相当于每一组数据,c.inte_param_inteuuid即拿到需要的uuid
insert into sjzx_interface_param t values(next.nextval,sys_guid(),SYSDATE,SYSDATE,'查询人',next.nextval,c.inte_param_inteuuid,'dqp_name','','查询','');
end loop;
commit;
end;