位置: 编程技术 - 正文

PHP:pg_set_error_verbosity()的用法_PostgreSQL函数

编辑:rootadmin
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函数

  • 研发费用加计扣除75%还是100%
  • 一般纳税人申报纳税的流程
  • 初装费包括什么
  • 注册税务师的报名条件、时间及考试
  • 收款金额比开票金额少是对方扣的手续费
  • 景点门票可以做账吗
  • 差旅费是计入
  • 多少金额以下可以一次性费用
  • 公司员工住宿费怎么入账
  • 怎么查上个月交的社保
  • 境外企业所得税税率
  • 对税务机关的加强措施
  • 企业股权转让留存收益可以扣除吗
  • 购进客房用品取得增值税专用发票注明税额9120
  • 加工原因造成的废品损失
  • 公司借款给个人利息怎么做账
  • 企业贷款银行罚息可以减免吗?
  • 研发新产品成功案例简短
  • 有发票的福利费可以不交个税吗
  • 办理完税务手续是否还需要报税?
  • 蔬菜批发的利润怎么算
  • 缴纳投标保证金
  • 公司租土地建厂房应该怎么做账呢?
  • 摊销费用多做如何做账?
  • 兼职人员工资个税怎么申报
  • 五险一金的记账凭证怎么填写
  • 累积带薪缺勤金额怎么算
  • 房地产企业预缴增值税如何申报
  • 购买办公用品没收到发票怎么做账
  • 企业合并的合并范围
  • php 生成缩略图
  • 房地产企业销售佣金税前扣除
  • vue.js.
  • 相机4244
  • ubuntu20.04.1安装
  • typescript some
  • declare -i
  • 工程代建的性质
  • 如何补缴以前年度的税
  • 计提的费用收到增值税专票
  • python如何运用
  • python 规划求解
  • 印花税计提怎么做分录
  • sql server2008代理无法启动
  • 个体工商户核定征收超额怎么缴税
  • 增值税普通发票查询真伪
  • 同一控制下企业合并
  • 收到股权认购款怎么做账
  • 非本公司员工的火车票可以报销么
  • 生物资产转让增值税
  • 往来支付是现金结算吗
  • 空调的预计净残值是什么
  • 明细账设置是什么意思
  • 填收入与成本明细怎么填
  • sql server 2005数据备份
  • Fedora25踏上Wayland的路上讲解
  • win8系统蓝屏后无法修复
  • windows 10如何使用
  • 做ghost备份
  • xp系统怎么安装网络驱动
  • windows7启用远程访问
  • linux date-u
  • linux的命令行指的是什么
  • linux系列
  • Android OpenGL ES(三)----编程框架
  • js常用的设计模式
  • javascript程序代码
  • codeblocks使用技巧
  • jquery实现复选框全选
  • unity3d怎么移动物体
  • Jquery中巧用Ajax的beforeSend方法
  • django pypy
  • JavaScript中getUTCSeconds()方法的使用详解
  • 深入理解计算机系统
  • 怎么用jquery
  • 江苏省发票真伪查询网站
  • 单位没有缴纳个人医保
  • 手表不贵比较好的品牌
  • 个人所得税完税证明在哪里查询打印
  • 药品定价的三种形式
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设