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 for Ruby » SQL Anywhere Ruby API

 

sqlany_get_bind_param_info

检索使用 sqlany_bind_param 绑定的参数的相关信息。

语法
sqlany_get_bind_param_info ( $stmt, $index )
参数
  • $stmt   使用 sqlany_prepare 成功预准备的语句。

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

返回值

返回 2 个元素的数组,其中第一个参数中 1 表示成功,0 表示失败;第二个是描述性参数。

另请参见
示例
# Get information on first parameter (0)
rc, param_info = api.sqlany_get_bind_param_info( stmt, 0 )
print "Param_info direction = ", param_info.get_direction(), "\n"
print "Param_info output = ", param_info.get_output(), "\n"