This shows you the differences between two versions of the page.
|
c:mysql:mysql.h:mysql_commit [2013/02/26 23:50] 158.181.88.241 sorry but there is no way to write a easy example |
c:mysql:mysql.h:mysql_commit [2024/02/16 01:12] (current) |
||
|---|---|---|---|
| Line 42: | Line 42: | ||
| mysql_select_db(my,"test"); | mysql_select_db(my,"test"); | ||
| - | mysql_autocommit(my, (my_bool)0); | + | mysql_autocommit(my, (my_bool)0); // set autocommit to false |
| mysql_query(my, "TRUNCATE TABLE `collection`;"); | mysql_query(my, "TRUNCATE TABLE `collection`;"); | ||