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

检索由上一读取操作所读取的数据的相关信息。

语法
sacapi_bool sqlany_get_data_info( a_sqlany_stmt * stmt, sacapi_u32 col_index,
  a_sqlany_data_info *  info )
参数
  • stmt   由 sqlany_execute 或 sqlany_execute_direct 执行的语句对象。

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

  • info   将在其中填充所读取数据的元数据的数据信息缓冲区。

返回值

成功则为 1,失败则为 0。如果任何提供的参数无效,则 sqlany_get_data_info 函数会失败。

另请参见