If you define table type as InnoDB, you can use transactions. You will need set AUTOCOMMIT=0
, and after you can issue COMMIT
or ROLLBACK
at the end of query or session to submit or cancel a transaction.
ROLLBACK -- will undo the changes that you have made
More Related Contents:
- mysql transaction – roll back on any exception
- Automatic Rollback if COMMIT TRANSACTION is not reached
- MySQL how to fill missing dates in range?
- ‘IF’ in ‘SELECT’ statement – choose output value based on column values
- Why does MYSQL higher LIMIT offset slow the query down?
- How to split the name string in mysql?
- Normalization in MYSQL
- Is there a REAL performance difference between INT and VARCHAR primary keys?
- How to set a maximum execution time for a mysql query?
- MySQL select statement with CASE or IF ELSEIF? Not sure how to get the result
- Getting around MySQL “Can’t reopen table” error
- Can’t Create Entity Data Model – using MySql and EF6
- In MySQL, can I copy one row to insert into the same table?
- How to copy a row and insert in same table with a autoincrement field in MySQL?
- MySQL: Cloning a MySQL database on the same MySql instance
- MySQL sharding approaches?
- access denied for load data infile in MySQL
- Can MySQL convert a stored UTC time to local timezone?
- Whats the fastest way to lookup big tables for points within radius MySQL (latitude longitude)
- MySQL Workbench: Error in query (1064): Syntax error near ‘VISIBLE’ at line 1
- Optimization of MySQL search using “like” and wildcards
- Does Order of Fields of Multi-Column Index in MySQL Matter
- Alternative to using LIMIT keyword in a SubQuery in MYSQL
- NodeJS MySQL Dump
- Why do I need “OR NULL” in MySQL when counting rows with a condition
- Rank() over Partition by in mysql
- Xampp-mysql – “Table doesn’t exist in engine” #1932
- Unserialize through query at database level itself
- MySQL throws Incorrect string value error
- ORDER BY alphabet first then follow by number