db2_commit

(PECL ibm_db2 >= 1.0.0)

db2_commit Commits a transaction

说明

db2_commit ( resource $connection ) : bool

Commits an in-progress transaction on the specified connection resource and begins a new transaction. PHP applications normally default to AUTOCOMMIT mode, so db2_commit() is not necessary unless AUTOCOMMIT has been turned off for the connection resource.

参数

connection

A valid database connection resource variable as returned from db2_connect() or db2_pconnect().

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见

相关文章
php ibm db2 函数 commits a transactionphp ibm db2 函数 returns the cursor type used by a statement resourcephp ibm db2 函数 used to escape certain charactersphp ibm db2 函数 executes an sql statement directlyphp ibm db2 函数 executes a prepared sql statementphp ibm db2 函数 returns an array indexed by column position representing a row in a result setphp ibm db2 函数 returns an array indexed by column name representing a row in a result setphp ibm db2 函数 returns a result set listing the foreign keys for a tablephp ibm db2 函数 frees resources associated with a result setphp ibm db2 函数 frees resources associated with the indicated statement resourcephp ibm db2 函数 retrieves an option value for a statement resource or a connection resourcephp ibm db2 函数 returns the auto generated id of the last insert query that successfully executed on this connectionphp ibm db2 函数 gets a user defined size of lob files with each invocationphp ibm db2 函数 rolls back a transactionphp ibm db2 函数 returns an object with properties that describe the db2 database serverphp ibm db2 函数 set options for connection or statement resourcesphp ibm db2 函数 returns a result set listing the unique row identifier columns for a tablephp ibm db2 函数 returns a result set listing the index and statistics for a tablephp mysqlnd ms 函数 commits a distributed/xa transaction among mysql serversphp sqlsrv 函数 commits a transaction that was begun with sqlsrv begin transaction
关注编程学问公众号