位置: 编程技术 - 正文

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

  • 缴纳上一年所得税附件是哪些科目
  • 增值税零税率是一种税收优惠政策
  • 经销商返点方案范文
  • 公司购买股票如何做账
  • 减免税备案登记表样本
  • 发票认证是干嘛
  • 增值税税控服务费的账务处理
  • 资产损失税前扣除
  • 计提残疾人保障金的基数是什么
  • 冲借款的凭证怎么做
  • 收到外国客户的祝福怎么回复
  • 出售设备账务处理
  • 集体土地上的不动产能符合异议28条规定吗
  • 电解铜进口可以卖吗
  • 关联交易的解释
  • 小微企业增值税收优惠政策
  • 残疾人就业保障金怎么申报
  • 递延和摊销
  • 网上申请的增值税专用纸质发票收到后如何确认已收到
  • 降温费和取暖费标准
  • 建筑设计公司的账务处理
  • 研发费用申报表汇算清缴怎么填
  • macbookair网页全屏
  • Windows10如何切换中英文输入法
  • 企业筹资付给第三方账户
  • win11安卓子系统教程
  • 事业编党费如何核算
  • 民间非盈利组织会计信息的使用者
  • 什么是跨区域涉税业务
  • linux7 nfs
  • 补充协议是否缴纳印花税
  • 境外服务包括哪些内容
  • 装机电源怎么装
  • 栅格布局实现
  • 今日元宵节图片
  • 会计中持有至到期投资是什么意思
  • 行政单位捐赠收入属于什么收入
  • 运输公司汽车折旧年限
  • 定期定额和核定征收哪个好
  • 机器学习——BP神经网络详细介绍及案例Python代码实现
  • flex布局用法
  • 应收账款未计提怎么处理
  • 进项税额销项税额
  • 房地产开发费用最高扣除比例
  • 财务f/p是什么意思的缩写
  • 织梦如何使用
  • 10万销售额是含税还是不含税
  • 开公司抬头的发票需要提供什么
  • 蔬菜开发票到哪里开呢?
  • 个人发票需要什么抬头
  • 合伙制律师事务所和个人律师事务所
  • 进口退货退税
  • 如何处理库存货
  • 开具发票时如何做账务处理?
  • 可供出售金融资产可以转为交易性金融资产吗
  • 土地使用权入账务处理
  • 销售材料购买方会计分录
  • 年度投资额看哪个科目
  • 过路费油费计入什么费用
  • sql server使用的是什么逻辑模型
  • win10系统问题怎么修复
  • 电脑开机显示xp后无反应
  • Linux系统磁盘分配
  • etcfstab文件修改
  • win7 word
  • linux系统bug
  • linux find -a
  • mac图形界面
  • drawcalls2000多
  • 深入解析windows第7版
  • 安卓下的分件分享怎么弄
  • shell脚本调用php方法
  • jqgrid动态增加列
  • javascript的sort
  • jquery移动版
  • android studio i使用
  • 新形势下税务工作
  • 税务总局和各省税务机关
  • 上海小规模纳税人企业所得税
  • 卡车生产企业
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设