Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » SQL Anywhere サーバ - プログラミング » SQL Anywhere データ・アクセス API » Ruby 用 SQL Anywhere » SQL Anywhere Ruby API

 

sqlany_get_next_result

複数の結果セット・クエリのうちの次の結果セットに進みます。

構文
sqlany_get_next_result ( $stmt )
パラメータ
  • $stmt   sqlany_execute または sqlany_execute_direct によって実行された文オブジェクト。

戻り値

成功した場合はスカラ値 1、失敗した場合は 0 を返します。

参照
stmt = api.sqlany_prepare(conn, "call two_results()" )
rc = api.sqlany_execute( stmt )
# Fetch from first result set
rc = api.sqlany_fetch_absolute( stmt, 3 )
# Go to next result set
rc = api.sqlany_get_next_result( stmt )
# Fetch from second result set
rc = api.sqlany_fetch_absolute( stmt, 2 )