Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
複数の結果セットクエリのうちの次の結果セットに進みます。
public sacapi_bool sqlany_get_next_result(a_sqlany_stmt * sqlany_stmt)
sqlany_stmt sqlany_execute() または sqlany_execute_direct() によって実行された文オブジェクト。
文が次の結果セットに進んだ場合は 1、それ以外の場合は 0。
クエリ (ストアドプロシージャーの呼び出しなど) が複数の結果セットを返す場合、この関数は現在の結果セットから次へ進みます。
次の例は、複数の結果セットクエリのうちの次の結果セットに進む方法を示します。
stmt = sqlany_execute_direct( sqlany_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 ); }