(PECL CUBRID >= 8.4.0)
cubrid_set_autocommit — Set autocommit mode of the connection
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
。