Name
mysql_commit( )
Synopsis
my_bool mysql_commit(MYSQL *mysql)
Use this to commit the current
transaction. After this function is executed,
INSERT
, UPDATE
, and
DELETE
statements are written to the database, and
you cannot use the mysql_rollback( )
function to
undo them. The function returns 0 if successful, nonzero if
unsuccessful.
mysql_commit(mysql);
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.