How to create an apex collection to store and loop through the values
I couldn't find any simple example to do this
Apex 4.2
I need to create an apex collection. I have a query that returns multiple roles for a user. I need to check to see if one of my item values is within the collection but am not sure how to do so. So far I have:
begin
APEX_COLLECTION.CREATE_COLLECTION (
p_collection_name => 'ALL_ROLES');
select count(granted_role) into count from dba_role_privs where upper(grantee) = upper(:APP_USER);
end;
How would I store the query results in the collection?