函数名:fbird_param_info()
适用版本:Firebird 2.0.0 及以上版本
用法:fbird_param_info() 函数用于获取 Firebird 查询中参数的相关信息。
参数:
- $query_handle:必需,Firebird 查询的句柄。
返回值: 该函数返回一个数组,包含以下信息:
- name:参数的名称
- alias:参数的别名
- relation:参数所属的关系
- precision:参数的精度
- scale:参数的刻度
- subtype:参数的子类型
- length:参数的长度
- charset:参数的字符集
- nullable:参数是否可为 NULL
- type:参数的类型
示例:
输出:
Array
(
[0] => Array
(
[name] => ?
[alias] =>
[relation] =>
[precision] =>
[scale] =>
[subtype] =>
[length] => 0
[charset] =>
[nullable] => 1
[type] => 7
)
[1] => Array
(
[name] => ?
[alias] =>
[relation] =>
[precision] =>
[scale] =>
[subtype] =>
[length] => 0
[charset] =>
[nullable] => 1
[type] => 14
)
)
注意:在示例中,我们假设已经成功连接到 Firebird 数据库,并已经定义了 $host、$username、$password 和 $charset 变量。