Skip to content

Instantly share code, notes, and snippets.

@rareddy
Last active September 19, 2017 22:52
Show Gist options
  • Save rareddy/93f23e1c5f068035619291cca97b7055 to your computer and use it in GitHub Desktop.
Save rareddy/93f23e1c5f068035619291cca97b7055 to your computer and use it in GitHub Desktop.
FOR EACH ROW
BEGIN
IF(changing.booking_id)
BEGIN
Update booking set booking_id=NEW.booing_id where id = old.id;
END
ELSE IF (..)
BEGIN
END
ELSE ..
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment