Print Thread
Collection
#59889 04/08/19 02:47 PM
Joined: Apr 2019
Posts: 1
C
coders Offline OP
Member
OP Offline
Member
C
Joined: Apr 2019
Posts: 1
How to print procedure collection output in PLSQL developer.

Re: Collection
coders #59894 04/09/19 09:37 AM
Joined: Aug 1999
Posts: 22,201
Member
Offline
Member
Joined: Aug 1999
Posts: 22,201
In a Test Window you can call the procedure with a local collection type variable, and subsequently open a cursor variable for the collection results. Declare the cursor variable as a bind variable of type 'Cursor' so that you can subsequently view the collection cursor result set. For example:

Code
declare
  my_collection my_collection_type;
begin
  my_ccollection_procedure(my_collection);
  open :my_collection_cursor for select * from table(my_collection);
end;
In this case :my_collection_cursor should be declared as a bind variable of type 'Cursor'.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.076s Queries: 15 (0.033s) Memory: 2.4949 MB (Peak: 3.0378 MB) Data Comp: Off Server Time: 2024-04-23 11:49:20 UTC
Valid HTML 5 and Valid CSS