位置: 编程技术 - 正文

PHP:pg_transaction_status()的用法_PostgreSQL函数

编辑:rootadmin
pg_transaction_status

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

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

(PHP 5 >= 5.1.0)

pg_transaction_status — Returns the current in-transaction status of the server.

说明 int pg_transaction_status ( resource $connection )

Returns the current in-transaction status of the server.

Caution

pg_transaction_status() will give incorrect results when using a PostgreSQL 7.3 server that has the parameter autocommit set to off. The server-side autocommit feature has been deprecated and does not exist in later server versions.

参数 PHP:pg_transaction_status()的用法_PostgreSQL函数

connection

PostgreSQL database connection resource.

返回值

The status can be PGSQL_TRANSACTION_IDLE (currently idle), PGSQL_TRANSACTION_ACTIVE (a command is in progress), PGSQL_TRANSACTION_INTRANS (idle, in a valid transaction block), or PGSQL_TRANSACTION_INERROR (idle, in a failed transaction block). PGSQL_TRANSACTION_UNKNOWN is reported if the connection is bad. PGSQL_TRANSACTION_ACTIVE is reported only when a query has been sent to the server and not yet completed.

范例

Example #1 pg_transaction_status() example

<?php$dbconn=pg_connect("dbname=publisher")ordie("Couldnotconnect");$stat=pg_transaction_status($dbconn);if($stat===PGSQL_TRANSACTION_UNKNOWN){echo'Connectionisbad';}elseif($stat===PGSQL_TRANSACTION_IDLE){echo'Connectioniscurrentlyidle';}else{echo'Connectionisinatransactionstate';}?>

PHP:pg_socket()的用法_PostgreSQL函数 pg_socket(PHP5=5.6.0)pg_socketGetareadonlyhandletothesocketunderlyingaPostgreSQLconnection说明resourcepg_socket(resource$connection)pg_socket()returnsareadonlyresourcecorrespondingtothesocketunderly

PHP:pg_trace()的用法_PostgreSQL函数 pg_trace(PHP4=4.0.1,PHP5)pg_trace启动一个PostgreSQL连接的追踪功能说明boolpg_trace(string$pathname[,string$mode[,resource$connection]])pg_trace()启动PostgreSQL前端/后端通讯的追

PHP:pg_set_error_verbosity()的用法_PostgreSQL函数 pg_set_error_verbosity(PHP5=5.1.0)pg_set_error_verbosityDeterminestheverbosityofmessagesreturnedbypg_last_error()andpg_result_error().说明intpg_set_error_verbosity([resource$connection],int$verbosit

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

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

上一篇:PHP:pg_tty()的用法_PostgreSQL函数(php statement)

下一篇:PHP:pg_socket()的用法_PostgreSQL函数(php socket_read)

  • 税控盘是什么东西多少钱
  • 准予扣除的税金及附加怎么算
  • 小微企业城建税减半
  • 增值税存量和增量留抵退税
  • 公司组织旅游的费用要交个税
  • 公司中介费收入如何纳税
  • 发票上有字迹可以拿去作废吗
  • 税法对固定资产大修理
  • 非营利性科研机构接受企业基础研究收入免征企业所得税
  • 租赁合同印花税计算
  • 丢失发票罚款如何入账
  • 外币折算会计处理例题
  • 商品损失 进项税 确定
  • 汇算清缴需要多久
  • 没有股权取得的分红如何交税?
  • 调增应纳税所得额
  • 增值税发票是否含税
  • 物流公司通行票抵税比例是多少
  • 金税盘抵扣增值税申报
  • 增值税返还收入冲减进项税
  • 酒店服务行业电费发票怎么开
  • 文化用品有哪些种类
  • 优先股份转让权
  • 加工费计入应付账款可以吗
  • 旅游业差额征税怎么计算
  • 服务业成本怎么做账
  • 税务定率征收
  • 筹建期间的开办费包括哪些
  • Remoterm.exe - Remoterm是什么进程 有什么用
  • 企业发生的利得和损失应计入所有者权益
  • 事业单位自营
  • 经营性应收项目的计算公式
  • php目录浏览
  • 借款费用如何确认收入
  • jsonp解决跨域问题spring3.0
  • ip6tables-restore命令 还原ip6tables表
  • 企业账户对私人账户转账多久到账
  • 小微企业具体指
  • 小规模纳税人享受小微企业优惠政策
  • phpcms插件
  • phpcms使用教程
  • SQL中print、sp_helptext的限制与扩展
  • 小规模都是季度报税吗
  • 一般整形医院的药在哪进货
  • ipv6的设置
  • 普通发票应怎么开具
  • 融资租赁业务如何开展
  • 预付款退回来了怎么做账
  • 河道管理费和水利基金
  • 非关联企业之间可以借款吗
  • 手续费和利息费用的区别
  • 事业单位预收账款转收入如何做账
  • mysql通过文档读取并执行命令之快速为mysql添加多用户和数据库技巧
  • mysql在cmd命令操作
  • iis6设置
  • freebsd使用
  • ebr.ahrcu
  • w7系统怎么扫描
  • 电脑找不到关机选项了怎么关机
  • win7系统如何关闭开机自动启动软件
  • win7无法删除d盘
  • 电脑开机后出现win7画面后一直黑屏
  • linux 多块硬盘虚拟成一块
  • python urllib urlopen
  • 在vs中搭建opengl环境
  • webpack基本使用
  • 全面理解全面把握全面落实
  • 深入理解新发展理念心得体会3篇
  • excel f9刷新
  • linux shell打开文件
  • es6新方法有哪些
  • python 类型检查
  • [置顶]星陨计划
  • android设置无标题
  • Python遍历文件夹中的图片
  • js 工作流
  • javascript原生函数的源代码
  • 增值税纳税申报操作流程和内容
  • 发票号码应与哪个号码一致
  • 什么是财务舞弊行为
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设