位置: 编程技术 - 正文

PHP:pg_set_error_verbosity()的用法_PostgreSQL函数

发布时间:2023-12-30
pg_set_error_verbosity

推荐整理分享PHP:pg_set_error_verbosity()的用法_PostgreSQL函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5 >= 5.1.0)

pg_set_error_verbosity — Determines the verbosity of messages returned by pg_last_error() and pg_result_error().

说明 int pg_set_error_verbosity ([ resource $connection ], int $verbosity )

Determines the verbosity of messages returned by pg_last_error() and pg_result_error().

pg_set_error_verbosity() sets the verbosity mode, returning the connection&#;s previous setting. In PGSQL_ERRORS_TERSE mode, returned messages include severity, primary text, and position only; this will normally fit on a single line. The default mode (PGSQL_ERRORS_DEFAULT) produces messages that include the above plus any detail, hint, or context fields (these may span multiple lines). The PGSQL_ERRORS_VERBOSE mode includes all available fields. Changing the verbosity does not affect the messages available from already-existing result objects, only subsequently-created ones.

参数

connection PHP:pg_set_error_verbosity()的用法_PostgreSQL函数

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().

verbosity

The required verbosity: PGSQL_ERRORS_TERSE, PGSQL_ERRORS_DEFAULT or PGSQL_ERRORS_VERBOSE.

返回值

The previous verbosity level: PGSQL_ERRORS_TERSE, PGSQL_ERRORS_DEFAULT or PGSQL_ERRORS_VERBOSE.

范例

Example #1 pg_set_error_verbosity() example

<?php$dbconn=pg_connect("dbname=publisher")ordie("Couldnotconnect");if(!pg_connection_busy($dbconn)){pg_send_query($dbconn,"select*fromdoesnotexist;");}pg_set_error_verbosity($dbconn,PGSQL_ERRORS_VERBOSE);$res1=pg_get_result($dbconn);echopg_result_error($res1);?>

参见

pg_last_error() - 得到某连接的最后一条错误信息 pg_result_error() - 获得查询结果的错误信息

PHP:pg_set_client_encoding()的用法_PostgreSQL函数 pg_set_client_encoding(PHP4=4.0.3,PHP5)pg_set_client_encoding设定客户端编码说明intpg_set_client_encoding([resource$connection],string$encoding)pg_set_client_encoding()设定客户端编码方

PHP:pg_send_query()的用法_PostgreSQL函数 pg_send_query(PHP4=4.2.0,PHP5)pg_send_query发送异步查询说明boolpg_send_query(resource$connection,string$query)boolpg_send_query(string$query)pg_send_query()向connection连接发送异步查

PHP:pg_send_query_params()的用法_PostgreSQL函数 pg_send_query_params(PHP5=5.1.0)pg_send_query_paramsSubmitsacommandandseparateparameterstotheserverwithoutwaitingfortheresult(s).说明boolpg_send_query_params(resource$connection,string$query,array$p

标签: PHP:pg_set_error_verbosity()的用法_PostgreSQL函数

本文链接地址:https://www.jiuchutong.com/biancheng/281133.html 转载请保留说明!

上一篇:PHP:pg_trace()的用法_PostgreSQL函数(php -i)

下一篇:PHP:pg_set_client_encoding()的用法_PostgreSQL函数

  • 进出口环节增值税计税基础
  • 定期定额个体工商户怎么报税
  • 个税申报错误已过申报期怎么修改
  • 行政事业单位国有资产处置管理办法
  • 个税手续费返还属于政府补助吗
  • 视同销售收入计入会计利润吗
  • 财付通支付备付金还到信用卡里怎么办
  • 废物处置费如何做分录?
  • 收到款未开发票挂账入什么科目?
  • 分公司开票总公司收款行吗
  • 增值税专用发票验证真伪
  • 打款与发票开具的会计处理方法是怎样的
  • 土地所有权和使用权的法律规定
  • 发票开了收不到钱
  • 上缴税金包括什么
  • 公司承兑汇票怎么兑现
  • 预收账款长期挂账如何处理
  • windowsserver2003设置用户密码
  • windows11我的电脑怎么放到桌面
  • 收到服务费分录怎么写
  • 发出商品与库存商品的区别
  • 4芯网线插线顺序图
  • 进口的固定资产包括哪些
  • php?ms=0&qgg=&_wv=3
  • 桌面图标删不掉怎么回事
  • 在window系统中哪些用户可以查看日志
  • 怎么删除win10开机多余选项
  • windows modules installer worker怎么禁用
  • 以合同条款无法达成一致要求返还定金
  • 航天信息服务费发票哪里打印
  • 应付股利在资产负债表哪个科目
  • web前端初级知识点
  • php封装数据库操作
  • 租金没有发票可以退税吗
  • 固定资产一次性折旧账务处理
  • python中列表的索引用法
  • 识别假人民币的简便方法
  • 公司的违约金
  • 计提工资大于发放工资,所得税汇算要调整吗
  • 公司用印制度
  • access speed
  • 备用金用发票核销去哪核销
  • 清算时存货是否要交税
  • 预收账款还可以用吗
  • 采购暂估业务处理流程
  • 土地转让需要批准吗
  • 怎么调整应收账款分录
  • 出口退税项目
  • 退休职工取暖费发放标准2023年
  • 车辆保险费没有发票会计分录
  • 企业坏账准备提取的方法和提取的比例由国家统一规定
  • 收据可不可以做账
  • 小微企业免征增值税优惠
  • 摊余成本计入哪里
  • shell 加密密码
  • win10的java环境该怎么配置?java环境变量配置介绍
  • 昂达主板插线安装图解
  • 微软的定时炸弹就是Windows XP
  • macbook air一键恢复出厂设置
  • Linux系统配置IP
  • linux ioctrl
  • vmware workstation15安装ubuntu
  • surveyor.exe - surveyor是什么进程
  • 安装macos10.15.7
  • register.exe - register进程有什么用.是什么意思
  • xp 更新
  • linux系统获取dhcp地址
  • musirc4.71.exe - musirc4是什么进程文件 有什么作用
  • win10如何打开defender
  • Linux查看内存的命令是
  • marvell 网卡驱动
  • from tkinter import
  • js计数排序
  • unity保存项目
  • java 视频教程
  • 怎么用jquery
  • 安徽监狱待遇qzzn
  • 企业房产税公式
  • 广西空置房物业费减免政策吗
  • 上海各区财政收入排名
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号