位置: 编程技术 - 正文

PHP:pg_parameter_status()的用法_PostgreSQL函数

编辑:rootadmin
pg_parameter_status

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

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

(PHP 5)

pg_parameter_status — Looks up a current parameter setting of the server.

说明 string pg_parameter_status ([ resource $connection ], string $param_name )

Looks up a current parameter setting of the server.

Certain parameter values are reported by the server automatically at connection startup or whenever their values change. pg_parameter_status() can be used to interrogate these settings. It returns the current value of a parameter if known, or FALSE if the parameter is not known.

Parameters reported as of PostgreSQL 8.0 include server_version, server_encoding, client_encoding, is_superuser, session_authorization, DateStyle, TimeZone, and integer_datetimes. (server_encoding, TimeZone, and integer_datetimes were not reported by releases before 8.0.) Note that server_version, server_encoding and integer_datetimes cannot change after PostgreSQL startup.

PostgreSQL 7.3 or lower servers do not report parameter settings, pg_parameter_status() includes logic to obtain values for server_version and client_encoding anyway. Applications are encouraged to use pg_parameter_status() rather than ad hoc code to determine these values.

Caution PHP:pg_parameter_status()的用法_PostgreSQL函数

On a pre-7.4 PostgreSQL server, changing client_encoding via SET after connection startup will not be reflected by 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().

param_name

Possible param_name values include server_version, server_encoding, client_encoding, is_superuser, session_authorization, DateStyle, TimeZone, and integer_datetimes.

返回值

A string containing the value of the parameter, FALSE on failure or invalid param_name.

范例

Example #1 pg_parameter_status() example

<?php$dbconn=pg_connect("dbname=publisher")ordie("Couldnotconnect");echo"Serverencoding:",pg_parameter_status($dbconn,"server_encoding");?>

以上例程会输出:

PHP:pg_options()的用法_PostgreSQL函数 pg_options(PHP4,PHP5)pg_options获得和连接有关的选项说明stringpg_options(resource$connection)pg_options()以字符串形式返回指定PostgreSQLconnection资源的连接选项。

PHP:pg_num_rows()的用法_PostgreSQL函数 pg_num_rows(PHP4=4.2.0,PHP5)pg_num_rows返回行的数目说明intpg_num_rows(resource$result)pg_num_rows()返回PostgreSQLresult中的行的数目。result参数是由pg_query()函数返回的查询

PHP:pg_num_fields()的用法_PostgreSQL函数 pg_num_fields(PHP4=4.2.0,PHP5)pg_num_fields返回字段的数目说明intpg_num_fields(resource$result)pg_num_fields()返回PostgreSQLresult中的字段(列)数目。参数是由pg_query()函数

标签: PHP:pg_parameter_status()的用法_PostgreSQL函数

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

上一篇:PHP:pg_ping()的用法_PostgreSQL函数(php实现ping功能)

下一篇:PHP:pg_options()的用法_PostgreSQL函数

  • 发放福利视同销售进项税要转出吗?
  • 增值税专用发票怎么开
  • 报表没有其他收入怎么办
  • 抵款车辆低价卖给职工账务处理:
  • 个人转让不动产给个人独资企业
  • 房地产对居民生活的影响
  • 增值税专用发票电子版
  • 合作开发项目收益怎么算
  • 租赁公司怎么开展业务
  • 小规模纳税人出售使用过固定资产
  • 印花税已经缴纳了还需要申报
  • 营改增后新开公司如何报地税?
  • 目前建筑里面税金总共包括几部分
  • 关于增值税发票开具的最新规定
  • 企业所得税清算报备是什么意思
  • 哪些税费不适用征管法?
  • 增值税普通发票需要交税吗
  • 社保和医保是分开到账吗
  • 收入低于10万免征附加税
  • windows10如何清理c盘垃圾
  • 自定义输入是什么
  • 运输发票备注规定
  • 房地产企业预缴增值税如何申报
  • 企业银行存款如何管理
  • bootcamp怎么直接安装
  • 发现以前年度多交增值税怎么申报
  • windows搜索为什么那么慢
  • win71
  • 什么样的企业是好企业,什么样的员工是好员工
  • 企业实际缴纳税款额账务怎么看
  • mac 快速切换输入法
  • 财务如何核对会计信息
  • 固定资产多少可以费用化
  • kafka图形化界面
  • 安装winsock
  • 未确认融资费用报表填在哪个科目
  • qiankun跨域问题
  • 修改Laravel5.3中的路由文件与路径
  • 往来款的账务处理
  • 收取违约金能作为合同自动终止要件吗
  • 织梦tag标签怎么用
  • 财务报表的组成主要包括
  • 销售折让的会计处理方法
  • 联营企业与合营企业纳入合并吗
  • db2 insert timestamp
  • 跨年发票能不能用
  • 原材料计入什么摘要
  • 信息科技领域的违法犯罪行为
  • 预收账款可以长期挂账吗
  • 增资减资改变股东要交税吗
  • 内部债权债务的抵消分录
  • 商场代收款合法吗
  • 专利年费计入什么科目没有研发费用
  • 贷款购车怎么做会计分录
  • 多少金额以上算固定资产
  • mysql数据库性能监控
  • docker镜像包含什么
  • win7 系统启动
  • ubuntu如何读
  • avgorange是什么文件
  • linux怎么开启root权限
  • 电脑win8.1系统怎么样
  • 我的第二个姐姐用英语怎么说
  • jQuery实现彩带延伸效果的网页加载条loading动画
  • perl中use的用法
  • python datetime.now
  • js实现返回顶部
  • Android-SQLite商业化数据库操作
  • unity引擎工具
  • js中checked什么意思啊
  • rst.open
  • 广州市税务局长
  • 纳税人未按照规定纳税
  • 我们要什么行政执法监督机制和能力建设严格落实行政
  • 东莞税收突破2000亿
  • 北京四合院为什么出名那么多
  • 税务登记成功后在哪里查询
  • 成都市青羊区国有资产监督管理办公室
  • 非盈利org
  • 在烟台如何发布招聘信息
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设