MySQL Forums
Forum List  »  Triggers

Re: LAST_INSERT_ID () in trigger
Posted by: Peter Brawley
Date: September 15, 2015 12:04PM

drop table if exists t, t2;
create table t(i int primary key auto_increment, j int);
create table t2 like t;
create trigger tins after insert on t insert into t2 select new.i, new.j;

Options: ReplyQuote


Subject
Views
Written By
Posted
5416
September 15, 2015 08:58AM
Re: LAST_INSERT_ID () in trigger
1586
September 15, 2015 12:04PM


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.