Created
August 31, 2017 19:22
-
-
Save peisenhower/e95a3170ff9830e4fa5ad00b98c8920b to your computer and use it in GitHub Desktop.
mysql transaction and rollback to test database modifications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN; | |
INSERT INTO teams | |
(name, uuid) | |
VALUES | |
('inner-transaction', UNHEX(REPLACE(UUID(), '-',''))); | |
select * from teams; | |
ROLLBACK; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment