MySQL Forums
Forum List  »  Triggers

Re: Obtain primary key value generated by before-insert trigger
Posted by: Peter Brawley
Date: March 09, 2016 03:26PM

SELECT auto_increment
FROM information_schema.tables
WHERE table_schema=Database() AND table_name='your table name';

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Obtain primary key value generated by before-insert trigger
890
March 09, 2016 03:26PM


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.