db2_next_result

PECL ibm_db2 >= 1.0.0
db2_next_result - Requests the next result set from a stored procedure
Manual
Code Examples

db2_next_result( resource$stmt ): resource

A stored procedure can return zero or more result sets. While you handle the first result set in exactly the same way you would handle the results returned by a simple SELECT statement, to fetch the second and subsequent result sets from a stored procedure you must call the db2_next_result function and return the result to a uniquely named PHP variable.

Parameters

stmt

A prepared statement returned from db2_exec or db2_execute.

Return Values

Returns a new statement resource containing the next result set if the stored procedure returned another result set. Returns false if the stored procedure did not return another result set.

Example of db2_next_result

Show all examples for db2_next_result

PHP Version: