LAST_INSERT_ID() question.
Let's say I have table A that has an auto_increment column. In an after update trigger I write an audit record to table B which also has an auto_increment column. If I insert a new record into A, the trigger gets called but if I want to return the last inserted id, does it return the one for table A or table B?
Edited 1 time(s). Last edit at 11/05/2005 04:05PM by peter.hamilton-scott.
Subject
Views
Written By
Posted
LAST_INSERT_ID() question.
3755
November 05, 2005 04:05PM
2221
November 05, 2005 05:33PM
2126
November 06, 2005 02:01AM
2726
November 06, 2005 07:20AM
2200
November 06, 2005 12:26PM
2104
November 06, 2005 12:44PM
3102
November 06, 2005 04:52PM
2144
November 06, 2005 06:45PM
2010
November 07, 2005 01:44AM
2034
November 07, 2005 09:27AM
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.