插入序列时,返回此序列值

create or replace
procedure P_UserMap(v_sql in varchar, id out varchar) is
begin
  execute immediate v_sql returning into id;
end P_UserMap;

##调用方式为:

insert into tableName(id,****,****) values(usermaps.nextval,'****','*****') returning id into :1

 

你可能感兴趣的:(序列,oracel)