ok here is my procedure based on the site you posted. Type ONEDNUMBERARRAY is type ONDNUMBERARRAY as table of number.

PROCEDURE GetTabAccess(ATabID IN NUMBER,
DATA_CURSOR OUT Types.CursorType)
IS
BEGIN

OPEN DATA_CURSOR FOR
select id,
cast ( multiset( select user_id
from caw_tabsaccess
where caw_tabsaccess.tab_id = caw_tabs.id and caw_tabsaccess.user_id IS NOT null
group by user_id ) as ONEDNUMBERARRAY ) USER_ID
from caw_tabs;
END GetTabAccess;

which compiles and seems to work but the script output is

ID USER_ID
------------- -----------
1
2
6
7
8
9
10
11
12
13
19
20
21
91
92
100
101
102
109
110
111
112
113
114
115
116
117
118
28 rows selected


so how do i get my data out of the in USER_ID column?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •