Skip to content

Instantly share code, notes, and snippets.

@hectorperez
Created April 23, 2014 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hectorperez/11222734 to your computer and use it in GitHub Desktop.
Save hectorperez/11222734 to your computer and use it in GitHub Desktop.
Trigger example
DROP TRIGGER IF EXISTS your_trigger_name;
DELIMITER $$
CREATE TRIGGER your_trigger_name
AFTER INSERT ON your_table_name FOR EACH ROW
BEGIN
...
END$$
DELIMITER;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment