Advances to the next result set in a multiple result set query.
sacapi_bool sqlany_get_next_result( a_sqlany_stmt * stmt )stmt A statement object executed by sqlany_execute or sqlany_execute_direct.
1 if the statement successfully advances to the next result set, 0 otherwise.
stmt = sqlany_execute_direct( conn, "call my_multiple_results_procedure()" );
if( result ) {
do {
while( sqlany_fetch_next( stmt ) ) {
// get column data
}
} while( sqlany_get_next_result( stmt ) );
sqlany_free_stmt( stmt );
}
|
| Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |