MySQL Forums
Forum List  »  Triggers

Re: Confused on Triggers and Store Procedures
Posted by: Bart Wallace
Date: January 02, 2016 10:59AM

BEGIN
INSERT INTO location (id, type) VALUES (NULL, 'PEN');
SET NEW.location_id = last_insert_id();
END

Simple. Beautiful. Thank You

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Confused on Triggers and Store Procedures
826
January 02, 2016 10:59AM


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.