Home » SQL & PL/SQL » SQL & PL/SQL » Using Bulk Binds in Stored Procedures
Using Bulk Binds in Stored Procedures [message #2593] Tue, 30 July 2002 03:11 Go to next message
Mark Grimshaw
Messages: 73
Registered: June 2002
Member
Hi,

I am getting error 'PLS-00493 invalid reference to a server-side object or function in a local context' when trying to compile the following s.p:-

PROCEDURE ReturnRecordArray(recArray IN OUT RecordArrayT) IS
BEGIN
SELECT * BULK COLLECT INTO RecArray FROM
TEST_TABLE;
END;

where RecordArrayT is defined as :
TYPE RecordArrayT IS VARRAY(10) OF TEST_TABLE%ROWTYPE;

I have looked at the documentation but don't quite understand where I am going wrong.

TYIA

Mark
Re: Using Bulk Binds in Stored Procedures [message #2601 is a reply to message #2593] Tue, 30 July 2002 09:13 Go to previous message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
Mark, you cannot select into an array of records, only an array of scalars. See here for some options:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=bq0j9skjbgpggss9hspjut1req2dgueo3i%404ax.com
Previous Topic: Cursor
Next Topic: switching between databases on the same computer
Goto Forum:
  


Current Time: Fri Apr 26 15:40:30 CDT 2024