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

将列信息添加到 a_sqlany_column_info 结构。

语法
sacapi_bool sqlany_get_column_info( a_sqlany_stmt * stmt, sacapi_u32 col_index,
  a_sqlany_column_info * info )
参数
  • stmt   由 sqlany_prepare 或 sqlany_execute_direct 创建的语句对象。

  • col_index   列编号在 0 到 sqlany_num_cols - 1 之间。

  • info   将在其中填充列信息的列信息结构。

返回值

成功时为 1,如果列索引超出范围,或者如果语句未返回结果集,则为 0。

另请参见