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 C API 参考 » sacapi.h

 

sqlany_fetch_absolute 函数

将结果集中的当前行移动到指定的行编号处,然后读取该行的数据。

语法
sacapi_bool sqlany_fetch_absolute( a_sqlany_stmt * stmt, sacapi_i32 row_num )
参数
  • stmt    由 sqlany_execute 或 sqlany_execute_direct 执行的语句对象。

  • row_num   要读取的行编号。第一行为 1,最后一行为 -1。

返回值

如果读取成功则为 1,读取失败时为 0。

另请参见