位置: 编程技术 - 正文

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

  • 事业单位怎么给分
  • 以前年度什么意思
  • 企业建厂房购进材料可以抵扣吗
  • 现金预算属于营业预算吗
  • 零申报还要抄税吗
  • 普通发票作废影响额度吗
  • 预付房租收到发票怎么做
  • 加计抵减怎么入账
  • 以个人使用过的设备投资免增值税吗
  • 个人所得税多缴了可以退回吗
  • 建筑业差额征税的账务处理
  • 开票时税收编码必须和进项一致吗
  • 本月没有发生额本月合计
  • 发票过期作废不了怎么办
  • 积分兑换内容
  • 期望和方差的计算例题
  • 员工个税需要计提吗现在
  • 苹果系统更新在哪里找
  • 销售净利率的计算公式有哪些
  • 增值税怎么调平
  • 企业办税人员是干嘛的
  • 什么是差额征税劳务费
  • 公司废业
  • linux root没有权限
  • Win10 KB5004945 更新后多个品牌打印机无法使用的解决方法
  • 如何快速判断
  • win11系统咋样
  • 判断企业存货过多的判断方法
  • 在laravel中,界面文件应该放在以下哪个路径下
  • php proto
  • 有限责任公司股东会的职权有哪些?
  • php修改ip地址
  • 废旧物资处理怎么入账
  • 购买材料支出明细表
  • el-table懒加载合并行
  • 模拟电子技术基础知识点总结
  • 增值税纳税申报表怎么填
  • 预收货款尚未发货
  • 收到的发票税收怎么处理
  • 核定扣除投入产品怎么算
  • 跨年度冲红字发票补正账务如何处理
  • 招待客人有什么讲究
  • 合伙企业法人股东税收
  • 所得税申报表营业成本包括哪些
  • 短期借款的核算
  • 出口退税一般风险商品
  • 房地产企业实际发生的税金及附加
  • 赊销应收款余额怎么算
  • 个人开技术服务费
  • 购买土地需要缴纳哪些费用
  • 销售退货成本如何计算
  • 坏账准备转回并收到货款会计分录
  • 投资利润率怎么看投资好还是不好
  • 安全生产费用提取标准 最新
  • 增值税购进扣税法
  • 总公司是否可以注销分公司
  • 特许权使用费代扣代缴企业所得税
  • MYSQL数据库应用
  • 红石玩家入门
  • windowsxp忘记密码了怎么办简单点
  • 在Windows Server 2008中配置FTP服务
  • mscorsvw.exe是什么进程
  • ubuntu系统防火墙状态
  • win10字体边缘模糊
  • win8metro版桌面安卓下载
  • 体验Win8灵活分屏贴靠功能图文介绍
  • win7如何设置关机快捷方式
  • win10更新后有线网络无法使用
  • win10恢复以前系统
  • qt5.15教程
  • react-native-navigation
  • node.js视频教程
  • 用户体验ui
  • 浅谈会计诚信与职业道德论文
  • Linux文本处理工具的实验总结
  • nodejs cli
  • javascript函数如何定义及其作用
  • 长春市税务局电话号
  • 出口退税函调管理办法
  • 房地产增值税怎么算举例说明
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设