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
379
January 26, 2018 05:01PM
427
January 26, 2018 06:09PM
Re: Syntax error on creating trigger
223
January 26, 2018 06:09PM
177
January 26, 2018 08:36PM
184
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.