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

返回结果集中的列数。

语法
sacapi_i32 sqlany_num_cols( a_sqlany_stmt * stmt )
参数
  • stmt   由 sqlany_prepare 或 sqlany_execute_direct 创建的语句对象。

返回值

结果集中的列数,若失败则返回 -1。

另请参见