/ Published in: MySQL
URL: http://stackoverflow.com/questions/7581584/simulate-mysql-queries
You could start a transaction before running your queries and then rollback after running them. Note that to do this you'll require InnoDB or XtraDb tables (won't work on MyISAM).
Expand |
Embed | Plain Text
START TRANSACTION; DELETE FROM my_table WHERE id=101; ROLLBACK;
You need to login to post a comment.
