-1
下面的代码不适用于PLSQL上的游标。 我收到一条错误消息。不适用于PLSQL的集合
declare
type abc is varray(10) of number;
cursor x is select Empno from emp where rownum <10;
a abc;
counter number :=1;
begin
a:=abc();
for i in x
loop
a.extend();
a(i):=counter.Empno;
DBMS_output.put_line(a(i));
counter:= end loop;
end;
感谢普利文。 – Nigel
当表中没有数据时。运行期间出现错误。 什么是例外? – Nigel
什么是错误消息? – Praveen