PHP » GoLang |
login |
register |
about
|
db2_autocommit(PECL ibm_db2 >= 1.0.0) db2_autocommit — Returns or sets the AUTOCOMMIT state for a database connection DescriptionSets or gets the AUTOCOMMIT behavior of the specified connection resource. Parameters
Return Values
When db2_autocommit() receives only the
When db2_autocommit() receives both the
Examples
Example #1 Retrieving the AUTOCOMMIT value for a connection In the following example, a connection which has been created with AUTOCOMMIT turned off is tested with the db2_autocommit() function.
<?php The above example will output: 0 -- AUTOCOMMIT is off. Example #2 Setting the AUTOCOMMIT value for a connection In the following example, a connection which was initially created with AUTOCOMMIT turned off has its behavior changed to turn AUTOCOMMIT on.
<?php The above example will output: Turning AUTOCOMMIT on succeeded. 1 -- AUTOCOMMIT is on. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|