for 迴圈中倒序 用reverse

Iven_lin發表於2024-03-19

declare
begin
<<outer>>
for i in reverse 1 .. 3 loop
<<inner>>
for i in 4 .. 6 loop
dbms_output.put_line('outer' || outer.i);
dbms_output.put_line('inner' || inner.i);
end loop;
end loop;
end;

相關文章