Name
mysql_autocommit( )
Synopsis
my_bool mysql_autocommit(MYSQL *mysql, my_bool mode)
Use this to set auto-commit mode on the
MySQL server. A value of 1 for the second argument of this function
sets the server’s auto-commit mode to on. A value of
sets it to 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.
... mysql_autocommit(mysql, 0); ...
Get MySQL in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.