Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
DBMS_LDAP , 11 of 30
This function counts the number of entries in the result set. It can also count the number of entries remaining during a traversal of the result set using a combination of the functions first_entry
and next_entry.
DBMS_LDAP.count_entries (ld IN SESSION, msg IN MESSAGE )RETURN PLS_INTEGER;
Parameter | Description |
---|---|
|
A valid LDAP session handle |
|
The search result, as obtained by a call to one of the synchronous search routines |
Value | Description |
---|---|
PLS INTEGER |
Non-zero if there are entries in the result set -1 if there was a problem. |
The count_entries
function returns the number of entries contained in a chain of entries. If an error occurs, such as the res
parameter being invalid, -1
is returned. The count_entries
call can also be used to count the number of entries that remain in a chain if called with a message, entry, or reference returned by first_message, next_message, first_entry, next_entry, first_reference,
and next_reference.
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|