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

search for in the

ingres_connect> <ingres_close
[edit] Last updated: Fri, 25 May 2012

view this page in

ingres_commit

(PHP 4 >= 4.0.2, PHP 5 <= 5.0.5, PECL ingres >= 1.0.0)

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

説明

bool ingres_commit ( resource $link )

ingres_commit() は、 現在オープンしているトランザクションをコミットし、 全ての変更をデータベースに保存します。

この関数はトランザクションをクローズします。 ingres_query() によりクエリを送信することで、 新規のトランザクションをオープンすることが可能です。

トランザクションをオープンする前に ingres_autocommit() をコールすることにより、 各クエリの後に自動的にサーバー側でコミットを行うことも可能です。

デフォルトで、Ingres will はリクエストの終了時に未コミットのトランザクションをロールバックします。 この関数あるいは ingres_autocommit() を使うことで、データを確実にデータベースにコミットすることができます。

パラメータ

link

接続リンク ID。

返り値

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

参考



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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites