create or replace procedure getid(v_id out number)
as
v_sql varchar2(500);
begin
v_sql:=‘insert into test values(7,‘‘jack‘‘) returning id into :1‘ ;
execute immediate v_sql
returning into v_id;
end;
时间: 2024-10-16 20:22:43
create or replace procedure getid(v_id out number)
as
v_sql varchar2(500);
begin
v_sql:=‘insert into test values(7,‘‘jack‘‘) returning id into :1‘ ;
execute immediate v_sql
returning into v_id;
end;