MySQL Forums
Forum List  »  Triggers

Re: Trigger syntax - stop duplicates
Posted by: Gavin McKay
Date: April 10, 2017 05:24AM

Thanks for the reply Phill,
so in my mind I need to...

Use something like:
SET @bookings_last_id = bookings.LAST_INSERT_ID(); (is this syntax correct?)

then perform my original INSERT but with a WHERE bookings_id = bookings_last_id

Am I on the right track?

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
1313
April 10, 2017 01:04AM
Re: Trigger syntax - stop duplicates
567
April 10, 2017 05:24AM


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.