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); ...