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_num_rows 函数

返回结果集中的行数。

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

注释

缺省情况下,此函数仅返回一个估计值。要返回准确计数,请在连接中设置 ROW_COUNTS 选项。有关详细信息,请参见row_counts 选项 [数据库]

返回值

结果集中的行数。如果行数是估计值,则返回负数,且估计值为所返回整数的绝对值。如果行数为准确值,则返回值为正。

另请参见