Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create Collection of Records with distinct values

931973May 2 2012 — edited May 3 2012
Hi,

Can someone tell me how can I create a collection of records with distinct values. As the cursor may have duplicate data so need to check collection of records if the data does not exists then add it else skip. Any idea on how to achieve this. The final collection will store NUMBERS only.

I know in java and other programming languages you can have a map, arraylist which lets you check if the element already exists then don't add but how do I do it in PL/SQL.


Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2012
Added on May 2 2012
6 comments
835 views