How do I return the last id auto increment in this case?
insert into t1(a, b, c)
select d, e, f from t2
on duplicate key update b = e, c = f;
I've tried last_insert_id (), but it returns the last id of the table and not the transaction....
asked by
05.05.2017 / 16:57