略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SAMConnection::rollback

2024-05-01

SAMConnection::rollback

(PECL sam >= 0.1.0)

SAMConnection::rollback Cancels (rolls back) an in-flight unit of work

说明

SAMConnection::rollback ( void ) : bool

Rolls back an in-flight unit of work.

返回值

This method returns FALSE if an error occurs.

范例

Example #1 Cancelling an in-flight unit of work

<?php
if (!$conn->rollback()) {
  
// The rollback failed!
  
echo "Rollback failed ($conn->errno$conn->error";
}
?>
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/samconnection.rollback.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3