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

将用户提供的缓冲区作为参数绑定到预准备语句。

语法
sacapi_bool sqlany_bind_param( a_sqlany_stmt * stmt, sacapi_u32 index, a_sqlany_bind_param * param )
参数
  • stmt   使用 sqlany_prepare 成功预准备的语句。

  • index   参数的索引。该数字必须在 0 到 sqlany_num_params() - 1 之间。

  • param   对要绑定参数 a_sqlany_bind_param 结构的说明。

返回值

成功时为 1,不成功时为 0。

另请参见