-
-
Save uncoded-ro/613a4cd3ea9eb44489f8f96fc1a0b384 to your computer and use it in GitHub Desktop.
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
SELECT * | |
FROM sakila.actor | |
ORDER BY last_update DESC | |
LIMIT 5; | |
START TRANSACTION; | |
INSERT INTO sakila.actor (first_name, last_name) | |
VALUES ("BRUCE", "JOHNSON"); | |
SELECT * | |
FROM sakila.actor | |
ORDER BY last_update DESC | |
LIMIT 5; | |
SAVEPOINT beforeUpdatePenelopeGuiness; | |
UPDATE sakila.actor | |
SET last_name = "JOHNSON" | |
WHERE actor_id = 1; | |
SELECT * | |
FROM sakila.actor | |
ORDER BY last_update DESC | |
LIMIT 5; | |
ROLLBACK TO SAVEPOINT beforeUpdatePenelopeGuiness; | |
COMMIT; | |
SELECT * | |
FROM sakila.actor | |
ORDER BY last_update DESC | |
LIMIT 5; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment