位置: 编程技术 - 正文

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

  • 城市维护建设税减免税优惠政策
  • 外贸企业出口流程图
  • 车辆购置税完税证明是什么
  • 一个月没有账务往来,现金日记账如何登记?
  • 购买研发设备的会计分录
  • 税额四舍五入的计算公式
  • 会计制度方法
  • 应纳税额与应纳税额差额
  • 修缮服务开票项目一览表
  • 贷款受托支付可以给股东吗
  • 小规模纳税人无进项票怎么办
  • 销售人员出差补助计入什么科目
  • 非同一控制下用什么法
  • 确认主营业务成本的依据是什么单据
  • 装卸费的增值税是多少
  • 预收账款的科目属性
  • 利润表没有其他业务利润
  • 增值税纳税申报实训心得体会
  • 汇算清缴报告和审计报告一样吗
  • 2020年餐饮行业免税政策
  • 不交社保是否可以马上辞职
  • 捐赠计提管理费的账务处理?
  • 个人车辆租给公司有什么后果
  • 非常损失计入
  • scchost.exe - scchost是什么进程 有什么用
  • 进程中svchost
  • window10电源选项
  • macOS Big Sur 11.3 开发者预览版/公测版 Beta 6正式发布
  • macos10.15.7补充更新
  • 现金长款怎么做会计分录
  • php的数据结构
  • php 调试工具
  • php 时间格式转换
  • yii框架入门
  • Android Studio安装和使用教程(全文图解)
  • php的!
  • ChatGPT可以做什么
  • 去年多计提的所得税怎么调整
  • 解决什么情况
  • node_sass
  • 营业税借方表示什么
  • 使用Go http重试请求
  • 员工社保缴纳规定标准
  • 处置固定资产开发票
  • 子公司计入长期股权投资吗
  • 成本费用利润率是什么指标
  • 视同小规模纳税人是有?
  • 融资购入的固定资产如何记账
  • 关于工程施工的法律法规
  • 不动产拆除的收入处理
  • 受托代销商品款是什么意思
  • 员工奖励的现金有哪些
  • 刷信用卡的手续费一般是多少
  • 预收账款借贷方向增减
  • 会计月末都需要做什么
  • 公司借款流程
  • linux常用命令修改
  • win7链接联机id
  • win8关闭开机启动项
  • windows任务
  • ubuntu创建新用户并增加管理员权限
  • 如何解决电脑wifi无法上网
  • 邮件版本
  • linux日期与时间
  • win7共享设置(详细图文步骤)
  • macbook怎么把通知关掉
  • linux cr3
  • 怎么把win8界面换成win7
  • windows7电脑无法正常运行
  • win7系统玩游戏怎么样
  • qt渲染机制
  • jquery跳出循环
  • python生成密钥
  • js布局与css布局
  • 安卓手机管家怎么关闭
  • javascript怎么学好
  • js闭包的定义和用途
  • 图书销售税点
  • 国际税务处岗位职责
  • 打单子的打印机能否打a4的纸
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设