|
Re: unique index on pl/sql tables [message #369728 is a reply to message #369726] |
Wed, 30 August 2000 08:41 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
SureshJ
Messages: 4 Registered: August 2000
|
Junior Member |
|
|
PL/SQL tables are by default indexed by a binary integer and cannot have a unique index on them as in a DB table. You have to use program logic and PL/SQL table built-ins such as
.FIRST,
.LAST,
.PRIOR,
.NEXT,
to loop through the table in order to check for duplicity in pl/sql tables. These built-ins will help you to have the search done in the most minimal time because they take advantage of a pl/sql table's sparseness and make traversal easy than conventional looping!!
I hope that helps.
Cheers.
SureshJ
PS :- Steven Feurestein's book will be really helpful in this regard. Or visit www.revealnet.com/pipelines/ and browse around for material on these.
|
|
|