Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - C 及 C++ 编程 » API 参考 » UltraLite ODBC API 参考

 

SQLGetData 函数

对于 UltraLite ODBC,检索结果集中单个列的数据。

语法
UL_FN_SPEC SQLRETURN UL_FN_MOD SQLGetData (
SQLHSTMT StatementHandle,
SQLUSMALLINT ColumnNumber,
SQLSMALLINT TargetType,
SQLPOINTER TargetValue,
SQLLEN BufferLength,
SQLLEN * StrLen_or_Ind );
参数
  • StatementHandle   语句句柄。

  • ColumnNumber   结果集中要绑定的列的编号。

  • TargetType   输出句柄。

  • TargetValue   指向要绑定到列的数据缓冲区的指针。

  • BufferLength   TargetValue 缓冲区的长度(以字节为单位)。

  • StrLen_or_Ind   指向要绑定到列的长度或指示符缓冲区的指针。

注释

SQLGetData 通常用于检索分成几部分的长度可变的数据。