位置: 编程技术 - 正文

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

  • 实收资本印花税按次还是按年
  • 财务软件回收
  • 可供出售金融资产会计处理
  • 生产性资金是生产资料吗
  • 暂估收入的必要条件
  • 年末增值税需要计提吗
  • 行政事业单位预算管理制度
  • 发票号码代码不合法
  • 资产入股会计处理
  • 行政单位支出科目中组织事务是什么
  • 农产品进项税额计算扣除的方法
  • 物资采集是什么意思
  • 预付账款年底账务怎么做账?
  • 固定资产盘亏账务处理例题
  • 财产租赁合同金额含税吗
  • 个人转让认缴出资股权需要交纳印花税吗?
  • 材料发票不够怎么办
  • 普通发票费用会计分录
  • 房屋转租收入会计分录
  • 企业所得税优惠事项包括哪些?
  • 电子账本excel模板
  • 社保支付账号是什么
  • 1697509246
  • 道路工程施工机械
  • 销售使用过的固定资产3%减按2%
  • 如何从零开始制作地下偶像
  • 企业如何选择会计师事务所
  • 固定资产计提折旧的方法
  • 非居民个人所得税税率表最新
  • 如何恢复撤回的信息微信
  • 至极加速
  • PHP:mb_convert_case()的用法_mbstring函数
  • bc2.exe
  • 企业销售旧固定资产税率
  • 生活补助费能不能退回来
  • php_fpm
  • Php实现邀请用户加入企业生成邀请链接
  • 自然保护绘画
  • 赡养老人专项附加扣除标准2023年
  • 计提的附加税
  • ChatGPT 被大面积封号,到底发生什么了?
  • php字符串处理函数有哪些
  • 没有发票的支出可以扣除企业所得税么
  • 独立核算的分公司注销时账面怎么处理
  • 进项税额转出在申报的时候怎么填
  • 外币财务报表的未分配利润
  • 国内源码平台
  • 软件服务费可以全额抵扣吗?
  • 印花税所得税汇算清缴
  • msdn sql server
  • 个人工资薪金如何零申报
  • 专票必须公对公打款吗
  • 电力行业规定
  • 主营业务收入借方什么意思
  • 如何进行税前扣除
  • 平均净资产怎么算公式的
  • 固定资产折旧从什么时候
  • 财务工作交接的通知
  • 财务软件摊销年限的最新规定
  • SQLServer:探讨EXEC与sp_executesql的区别详解
  • mysql四个事务的四个特性
  • sql server自动生成id
  • 手机如何使用windows
  • XP系统无法安装软件
  • mac开机声音怎么取消
  • ghost怎么安装gho文件
  • linux oracle12c
  • 笔记本如何一键锁屏快捷键
  • linux jack
  • 阿里云服务器linux系统
  • macbookair扫描文件怎么弄
  • win10 Mobile 10586.36预览版更新了哪些内容?
  • cocos2dx 3.4 lua加密 setXXTEAKeyAndSign
  • 第三方解决方案
  • 推荐10 个很棒的电影
  • shell中的-le
  • celery使用
  • jQuery插件开发
  • 房产契税发票在哪里查询
  • 国家发票真伪查验
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设