MySQL Forums
Forum List  »  Triggers

Re: Trigger syntax - stop duplicates
Posted by: Peter Brawley
Date: April 10, 2017 07:55AM

The Trigger knows values in the just-inserted `bookings` row as NEW.column_name, eg NEW.firstname, so to add the new bookings row to `bookings_report`, you need something like ...

INSERT INTO bookings_report
SET firstname=NEW.firstname, etc ...

Options: ReplyQuote


Subject
Views
Written By
Posted
659
April 10, 2017 01:04AM
Re: Trigger syntax - stop duplicates
248
April 10, 2017 07:55AM


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.