位置: 编程技术 - 正文

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

  • 奖励旅游的概念解释
  • 公司法人和经理承担责任一样吗
  • 建筑业增值税税率2022
  • 净利润和盈余公积的会计分录
  • 福利费需要申报吗
  • 应付账款贷方怎么调整
  • 公司银行未开户税务也没开需要做工商年报吗
  • 进项税额转出有什么影响
  • 加计抵减税金分录
  • 个税返还手续费奖励员工需要交个税吗
  • 机票抵进项税税率
  • 企业所得税逾期了一定要去税局前台申报吗
  • 年底向员工客户发放、赠送实物的怎么缴个税
  • 小规模纳税人如何计算增值税应纳税额
  • 开办费用属于什么科目
  • 土地使用权摊销的会计分录
  • 应交税费不核算
  • 支付广告费要交增值税吗
  • 研发阶段计入管理费用吗吗
  • win10怎么打开任务管理器
  • 退税应纳税所得额4万交税多少
  • 若依框架入门
  • Windows10如何修复引导
  • 计提工资和发放工资区别
  • 查账征收的个独可以随意分配利润吗
  • backupnotify.exe是什么文件的进程 backupnotify进程安全吗
  • 汽车修理公司的成本怎么核算
  • 企业定率征收的税率是多少
  • 公司搬家费用怎么入账
  • 合伙养殖需要注意什么
  • 企业受赠业务的法律规定
  • elementui中的el-tab-pane为什么内容会为0
  • 新建vue项目
  • 准备动作怎么做
  • javascript生成器
  • 若依框架前端如何通过后端加载页面
  • websocket怎么读
  • 逾期未退押金是否确认收入
  • 2020信息采集
  • 零申报有哪些
  • 资产负债表中应交税费为负数是什么意思
  • 预付账款的会计处理
  • 车费增值税税率
  • 增值税贷方余额是负数怎么办
  • php 更新
  • 折旧的结转
  • 应纳税所得额计入什么科目
  • sql server基本知识
  • 用PostgreSQL数据库做地理位置app应用
  • MySQL读写分离中间件
  • 小企业会计准则适用范围
  • 应收业务处理流程
  • 长期应付款的会计编号
  • 汽车销售企业营销策略
  • 装修设计费多少合理
  • 企业所得税季报营业成本包括哪些
  • 物流行业会计的工作内容
  • 建账的过程包括哪些内容
  • sqlserver自定义函数在哪查看
  • win7 64位运行软件提示MSCOMCTL.OCX丢失或无效该怎么办?
  • win 10怎么更换系统
  • win8系统启动不了如何修复
  • linux查看sh
  • linux必学的60个命令及使用
  • win8旗舰版官方下载
  • mac2019强制关机
  • 非常漂亮的英文怎么说
  • android studio入门项目
  • 《噩梦》
  • emacs win10
  • unity3d操作
  • mkdirs linux
  • android摇一摇实现
  • jquery过滤选择器按照过滤规则分类包括?
  • js解析json字符串获取key
  • jquery自定义方法
  • 小微企业印花税减半政策
  • 沈阳税务局营业时间查询
  • 白酒消费税加征
  • 预到船舶是什么
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设