-
-
Save uncoded-ro/9dd6880f83c69cd65eef56bf33b48689 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
USE sakila; | |
DROP TRIGGER IF EXISTS ins_film; | |
DELIMITER $$ | |
CREATE TRIGGER ins_film | |
AFTER INSERT | |
ON film FOR EACH ROW | |
BEGIN | |
INSERT INTO film_text (film_id, title, description) | |
VALUES (new.film_id, new.title, new.description); | |
END $$ | |
DELIMITER ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment