略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: cubrid_set_autocommit

2024-11-14

cubrid_set_autocommit

(PECL CUBRID >= 8.4.0)

cubrid_set_autocommitSet autocommit mode of the connection

说明

cubrid_set_autocommit(resource $conn_identifier, bool $mode): bool

The cubrid_set_autocommit() function is used to set the CUBRID database auto-commit mode of the current database connection.

In CUBRID PHP, auto-commit mode is disabled by default for transaction management. When auto-commit mode is truned from off to on, any pending work is automatically committed.

参数

conn_identifier

Connection identifier.

mode

Auto-commit mode. The following constants can be used:

  • CUBRID_AUTOCOMMIT_FALSE
  • CUBRID_AUTOCOMMIT_TRUE

返回值

成功时返回 true, 或者在失败时返回 false

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.cubrid-set-autocommit.php

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