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 » SQL Anywhere for Ruby » 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 )