位置: 编程技术 - 正文

PHP:oci_result()的用法_Oracle函数

编辑:rootadmin
oci_result

推荐整理分享PHP:oci_result()的用法_Oracle函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5, PECL OCI8 >= 1.1.0)

oci_result — 返回所取得行中字段的值

说明 mixed oci_result ( resource $statement , mixed $field )

oci_result() 返回由 oci_fetch() 所取得的当前行中 field 字段的数据。oci_result() 对所有类型都返回字符串只除了抽象类型(ROWID,LOB 和 FILE)。oci_result() 在出错时返回 FALSE。

可以使用列序号(从 1 开始)或列名(大写)作为 col 的参数。

Note:

在 PHP 5.0.0 之前的版本必须使用 ociresult() 替代本函数。该函数名仍然可用,为向下兼容作为 oci_result() 的别名。不过其已被废弃,不推荐使用。

要获取 OCI8扩展进行数据类型映射的细节,请参见驱动所支持的数据类型。

PHP:oci_result()的用法_Oracle函数

参见 oci_fetch_array(),oci_fetch_assoc(),oci_fetch_object(),oci_fetch_row() 和 oci_fetch_all()。

参数

statement

field

Can be either use the column number (1-based) or the column name (in uppercase).

返回值

Returns everything as strings except for abstract types (ROWIDs, LOBs and FILEs). Returns FALSE on error.

注释

Note:

In PHP versions before 5.0.0 you must use ociresult() instead. This name still can be used, it was left as alias of oci_result() for downwards compatability. This, however, is deprecated and not recommended.

参见

oci_fetch_array() - Returns the next row from a query as an associative or numeric array oci_fetch_assoc() - Returns the next row from a query as an associative array oci_fetch_object() - Returns the next row from a query as an object oci_fetch_row() - Returns the next row from a query as a numeric array oci_fetch_all() - 获取结果数据的所有行到一个数组

PHP:oci_password_change()的用法_Oracle函数 oci_password_change(PHP5,PECLOCI8=1.1.0)oci_password_change修改Oracle用户的密码说明booloci_password_change(resource$connection,string$username,string$old_password,string$new_password)resource

PHP:oci_parse()的用法_Oracle函数 oci_parse(PHP5,PECLOCI8=1.1.0)oci_parse配置Oracle语句预备执行说明resourceoci_parse(resource$connection,string$query)oci_parse()在connection上配置query并返回语句标识符以用于oci

PHP:oci_new_descriptor()的用法_Oracle函数 oci_new_descriptor(PHP5,PECLOCI8=1.1.0)oci_new_descriptor初始化一个新的空LOB或FILE描述符说明OCI-Loboci_new_descriptor(resource$connection[,int$type])oci_new_descriptor()分配资源以

本文链接地址:https://www.jiuchutong.com/biancheng/275239.html 转载请保留说明!

上一篇:PHP:oci_num_fields()的用法_Oracle函数

下一篇:PHP:oci_password_change()的用法_Oracle函数

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络