位置: 编程技术 - 正文
推荐整理分享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
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号。
标签: PHP:pg_version()的用法_PostgreSQL函数
本文链接地址:https://www.jiuchutong.com/biancheng/281126.html 转载请保留说明!上一篇:PHP:pg_untrace()的用法_PostgreSQL函数
下一篇:PHP:pg_update()的用法_PostgreSQL函数(php更新数据)
友情链接: 武汉网站建设