MySQL Forums
Forum List  »  Triggers

Re: Syntax error on creating trigger
Posted by: Peter Brawley
Date: January 26, 2018 06:09PM

MySQL through 5.7 gives an error on ORDER 1. Looks like syntax from another sql dialect.

Remove that, and either remove the Begin/End (unneeded in a single-statement routine) or surround trigger creation with delimiter directives, and it works.

Options: ReplyQuote


Subject
Views
Written By
Posted
1513
January 26, 2018 05:01PM
2116
January 26, 2018 06:09PM
Re: Syntax error on creating trigger
1013
January 26, 2018 06:09PM
696
January 26, 2018 08:36PM
681
January 26, 2018 08:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.