downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

db2_conn_error> <db2_columns
Last updated: Fri, 13 Nov 2009

view this page in

db2_commit

(PECL ibm_db2 >= 1.0.0)

db2_commit トランザクションをコミットする

説明

bool db2_commit ( resource $connection )

指定した接続リソース上で実行中のトランザクションをコミットし、 新しいトランザクションを開始します。PHP アプリケーションのデフォルトは AUTOCOMMIT モードなので、接続リソースに対して AUTOCOMMIT を無効にしていない限り db2_commit() は必要ありません。

注意: 指定した接続が持続的接続であった場合、持続的接続を使用している すべてのアプリケーションで実行中のトランザクションがコミットされます。 そのため、トランザクションが必要なアプリケーションでは 持続的接続の使用は推奨されません。

パラメータ

connection

db2_connect() あるいは db2_pconnect() が返した有効なデータベース接続リソース。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

参考

  • db2_autocommit() - データベース接続の AUTOCOMMIT の状態を取得または設定する
  • db2_rollback() - トランザクションをロールバックする



add a note add a note User Contributed Notes
db2_commit
There are no user contributed notes for this page.

db2_conn_error> <db2_columns
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites