oracle之returning

declare v_id t11.id%TYPE;
begin
insert into t11 values(t11_seq.nextval,'TEST')
returning id into v_id;
 commit;
DBMS_OUTPUT.put_line('ID=' || v_id);
end;

你可能感兴趣的:(oracle之returning)