August 1999
Intermediate to advanced
1488 pages
72h 53m
English
stproc.returnValue()
The returnValue() method of the Stproc object returns the return value of the stored procedure. For DB2, Informix, and ODBC, this method always returns null. Oracle only returns null if the stored procedure did not return a value. Sybase always returns a value.
Note
Before you call this method, you must retrieve any Resultset objects. Once this method is called, no more data can be obtained from the current result set and no more result sets can be created.
Listing 8.148 calls a stored procedure, creates a result set, and obtains the result value. This value is then written to the user's page.
<SERVER> // ... |
Read now
Unlock full access