What is the right method to testing mysql query?
Example: i want to testing running update query
update `transaction` set date="2013-01-01" where id=1;
after the query update, i see the database is change correctly. but then i want the database revert back to the state before the query update execute, because that's query purpose is for testing only.
Is there any tools to easily create virtual database to testing or maybe mysql have functions to revert back the state?