位置: 编程技术 - 正文

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函数

  • 高新企业收到政府补贴怎么做账
  • 金税四期会计人员如何提升自己
  • 房地产业如何确认收入
  • 维修费开票属于哪个大类
  • 个税申报申报方式选择
  • 发票入不了账怎么办
  • 坏账准备递延所得税资产怎么算
  • 事业单位个税可以自行申报吗
  • 现金折扣不考虑增值税什么意思
  • 专项资金是否缴纳企业所得税
  • 分配现金股利的现金流
  • 单位定期存款如遇利率调整,不论调高调低
  • 个人所得税如果换公司怎么办
  • 小规模企业怎么报国税
  • 员工离职公司需要办理什么手续
  • 公司和个人大额往来怎么办
  • 未到期责任准备金属于什么科目
  • 小规模开3%专票可享受减免
  • 个税7月申报7月怎么填
  • 公司作为二房东怎么给别人开发票
  • harmonyos2.0缺点
  • linux如何用root用户登录
  • ubuntu18.04 u盘安装
  • Win10 19043.1237 9月累积更新 KB5005565推送(附更新修复+下载)
  • php怎么设置中文
  • 企业出售产品前,预收客户一笔货款
  • 发票开出后只收到部分款怎么处理?
  • w11系统安卓
  • 退回以前年度多交增值税
  • 销售旧的固定资产 税法规定
  • 增值税不允许抵扣计入什么科目
  • 合同的第三方指什么
  • 进项税可以留底多长时间
  • 什么是工资薪金所得
  • java开发和运维
  • 一个小柜的货代费用
  • php是什么
  • 织梦遍历栏目描述
  • java操作mongodb数据库
  • 会务费如何入账
  • 金税盘登录密码和口令从哪查
  • 商品流通企业流程图
  • 建筑公司劳务分包开票内容怎么写
  • 银行开的手续费发票开错了
  • 利息收入填在汇算清缴哪里
  • 应交税费主要有什么税
  • 挂靠在运输公司的车辆为什么要记入"固定资产"科目?
  • 收到费用发票分录
  • 小企业营业外支出的内容
  • 协作费用
  • 确认代销手续费怎么做账
  • 总资产报酬率的公式
  • 开餐饮店需要什么条件才能开
  • 账务调整会计分录
  • 吸收的三种方式
  • windows注册表简单应用
  • 联想昭阳k41笔记本
  • 如何解决cpu超频问题
  • win8系统运行在哪里
  • win传统桌面
  • centos pptpd
  • win10自带绘画
  • win10怎么看电池寿命
  • cocos2djs
  • android 动态布局
  • js数组随机抽奖
  • javascript写html
  • nodejs快速入门
  • nodejs socket框架
  • javascript运用
  • javascript:void(0)点击登录没反应怎么解决
  • 从重置手
  • android自学
  • 天津2023防暑降温费标准文件
  • 注会证可以挂靠吗?挂靠合法吗?
  • 国家税务局广东省电子税务总局手机版
  • 企业房产税优惠减免政策2020
  • 联合举办的活动
  • 新疆高龄补贴2024发放标准是多少
  • 异辛烷征收消费税对成品油影响
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设