Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Need help with PL/SQL's bulk collect.
Hi,
I need help with using bulk collect in PL/SQL. The code I'm using is:
DECLARE
TYPE EmpnoTab IS TABLE OF emp.empno%TYPE;
emp_nos EmpnoTab;
BEGIN
SELECT empno BULK COLLECT INTO emp_nos
FROM emp;
END;
But I get:
SELECT empno BULK COLLECT INTO emp_nos
*
ORA-06550: line 5, column 23: PLS-00103: Encountered the symbol "COLLECT" when expecting one of the following:
I can't see why this shouldn't work. Any ideas anyone?
Thanks in advance,
Duncan
Received on Mon Mar 18 2002 - 10:31:19 CST