17,086
社区成员
发帖
与我相关
我的任务
分享
create sequence seq_1;
create table test(a int,b varchar2(100));
declare
v_a int;
v_b varchar2(100);
begin
insert into test
values
(seq_1.nextval, 'abc')
returning a, b into v_a,v_b;
dbms_output.put_line('a=' || v_a || ',' || 'b=' || v_b);
end;
/
--输出:a=1,b=abc
drop sequence seq_1;
drop table test;
[Quote=引用楼主 weiang_1983 的回复:]