位置: 编程技术 - 正文

PHP:pg_version()的用法_PostgreSQL函数

编辑:rootadmin
pg_version

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

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

(PHP 5)

pg_version — Returns an array with client, protocol and server version (when available)

说明 array pg_version ([ resource $connection ] )

pg_version() returns an array with the client, protocol and server version. Protocol and server versions are only available if PHP was compiled with PostgreSQL 7.4 or later.

For more detailed server information, use pg_parameter_status().

参数

connection PHP:pg_version()的用法_PostgreSQL函数

PostgreSQL database connection resource. When connection is not present, the default connection is used. The default connection is the last connection made by pg_connect() or pg_pconnect().

返回值

Returns an array with client, protocol and server keys and values (if available). Returns FALSE on error or invalid connection.

范例

Example #1 pg_version() example

<?php$dbconn=pg_connect("host=localhostport=dbname=mary")ordie("Couldnotconnect");$v=pg_version($dbconn);echo$v['client'];?>

以上例程会输出:

参见

pg_parameter_status() - Looks up a current parameter setting of the server.

PHP:pg_update()的用法_PostgreSQL函数 pg_update(PHP4=4.3.0,PHP5)pg_update更新表说明mixedpg_update(resource$connection,string$table_name,array$data,array$condition[,int$options=PGSQL_DML_EXEC])pg_update()用condition作为条件查询

PHP:pg_unescape_bytea()的用法_PostgreSQL函数 pg_unescape_bytea(PHP4=4.3.0,PHP5)pg_unescape_bytea取消bytea类型中的字符串转义说明stringpg_unescape_bytea(string$data)pg_unescape_bytea()将bytea数据类型中的字符串取消转义。

PHP:pg_tty()的用法_PostgreSQL函数 pg_tty(PHP4,PHP5)pg_tty返回该连接的tty号说明stringpg_tty(resource$connection)pg_tty()返回指定PostgreSQLconnection资源在服务器端输出调试信息的tty号。

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

上一篇:PHP:pg_untrace()的用法_PostgreSQL函数

下一篇:PHP:pg_update()的用法_PostgreSQL函数(php更新数据)

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

鄂ICP备2023003026号

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

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