April 2008
Intermediate to advanced
566 pages
21h 55m
English
mysql_autocommit()
my_bool mysql_autocommit(MYSQL *mysql, my_bool mode)
Use this function to turn on or off autocommit mode. A value
of 1 for the second argument of this function turns on the server’s
autocommit mode. A value of 0 turns it off. The
autocommit causes the server to update the database
after each INSERT, UPDATE, or
DELETE statement, essentially running each in its
own transaction. The default is on. Here is an example:
... mysql_autocommit(mysql, 0); ...
Read now
Unlock full access