位置: 编程技术 - 正文

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

  • 季度所得税费用如何计提
  • 异地车辆流程
  • 可以公账户给私账转账吗
  • 残疾人就业保障金征收使用管理办法
  • 运输费计入原材料成本吗
  • 残疾人士有哪些
  • 库存商品暂估入库
  • 房地产企业固定资产的折旧
  • 工业企业会计怎么结转成本
  • 建筑公司现金日记账怎么填写
  • 不动产抵扣进项税
  • 事业单位利息收入
  • 建筑工程项目的全生命周期包括
  • 租车补贴记入工资的会计处理怎么做?
  • 违约金 罚款
  • 增值税专用发票和普通发票的区别
  • 个人房源可以委托别人吗
  • 医疗机构交企业所得税吗
  • 广告费扣除年限
  • 小公司发工资怎么做账
  • 小规模纳税人应交增值税科目设置
  • 13个点的税怎么算税金
  • 金税盘怎么做账务处理
  • a107040减免所得税优惠明细表2020
  • 用盈余公积弥补亏损会影响所有者权益总额吗
  • 配置足够但玩游戏卡顿
  • win10任务栏图标怎么变大
  • 怎么做增值税
  • 公司运输车辆加油会计分录
  • 没收到电费账单怎么办
  • 装win7ahci
  • u盘win10系统安装教程
  • 电子钥匙续费应用在哪里
  • Win10 KB5004476 可选更新 解决XGP游戏无法安装的问题
  • 白鹤芋的养殖方法和注意事项
  • PHP:zip_entry_compressionmethod()的用法_Zip函数
  • echarts-wordcloud 血泪总结使用说明 (配置项及其不足点优化)
  • 出口免税和退税交附加税
  • 工程施工会计做账流程及会计分录
  • 企业的职工教育经费计入什么费用
  • 接口多继承的写法
  • typescript .d.ts
  • excel&命令
  • 退质保金计入什么科目
  • 不动产物权归属和内容的根据是什么?
  • 零售企业商品盘点发生溢余后,在查明原因前,应按
  • 营运资金需求量测算表格
  • sql数据库使用基本原理
  • 社保为什么单位缴费是0什么时间才正常
  • 开矿泉水发票怎么开?
  • 微信账单可以用来干嘛
  • 进项税和销项税月末怎么结转
  • 企业存货明细表和盘点表
  • 公司注销后如何起诉他人
  • 购入固定资产计累计盈余
  • 电费发票开据后如何入帐?
  • 应付职工薪酬为负数什么意思
  • 现金支票取现的法律规定
  • 汇兑损益的税务处理
  • mysqldumpslow
  • 服务器系统2003
  • Win10 Mobile 14393.321终于修复Lumia636/638导航栏遮挡
  • linux命令nano
  • vmstat命令
  • xp怎么改w7
  • win7系统摄像头不可用怎么办
  • win8 metro界面
  • win10如何安装office
  • linux限制用户cpu使用
  • windows8 应用商店
  • Extjs中RowExpander控件的默认展开问题示例探讨
  • linux ls-l命令详解
  • python提供三种基本数值类型
  • 怪物掉落物品的获取方式
  • shell定时删除指定目录下的文件夹
  • jquery示例
  • bootstrapcdn
  • jquery改变img的src
  • 北京纳税申报的具体流程
  • 税务系统个人业务自传
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设