Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
将为指定列读取的数据检索到提供的缓冲区内存。
public sacapi_i32 sqlany_get_data( a_sqlany_stmt * sqlany_stmt, sacapi_u32 col_index, size_t offset, void * buffer, size_t size )
sqlany_stmt 由 sqlany_execute() 或 sqlany_execute_direct() 执行的语句对象。
col_index 要检索的列编号。列编号在 0 到 sqlany_num_cols() - 1 之间。
offset 要获取的数据的起始偏移量。
buffer 将在其中填充列内容的缓冲区。缓冲区指针必须按照复制到其中的数据类型正确对齐。
size 缓冲区的大小(以字节为单位)。如果所指定的大小大于 2GB,则该函数会失败。
成功复制到所提供缓冲区中的字节数。此数字不能超过 2GB。0 表示没有数据要复制。-1 表示失败。