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 嵌入式 SQL » 库函数参考

 

fill_s_sqlda 函数

原型
struct sqlda * fill_s_sqlda(
struct sqlda * sqlda,
unsigned int maxlen );
说明

与 fill_sqlda 相同,只不过它将 sqlda 中的所有数据类型更改为类型 DT_STRING。将分配足够的空间,以保存最初由 SQLDA 指定的类型的字符串表示,最大为 maxlen 字节。会相应修改 SQLDA 中的长度字段 (sqllen)。如果成功则返回 sqlda;如果没有足够的可用内存则返回空指针。

SQLDA 应使用 free_filled_sqlda 函数释放。