Hello,
I have a table (TABLE_A) with an ID field that we use seq.nextval to populate on INSERT.
TABLE_A:
ID
<other stuff>
USER_NAME
And I have a second table (TABLE_B) which may contains multiple records for each ID:
TABLE_B:
ID
USER_NAME
When we insert into TABLE_A, we provide all the <other stuff> and the USER_NAME in the insert statement.
Is it possible to build an AFTER INSERT trigger to insert a row into TABLE_B using the ID and USER_NAME fields from TABLE_A? I haven't been able to find any examples where an AFTER INSERT trigger is used when the ID is not known until after the record is inserted into TABLE_A.
Thanks in advance for any insight!
Valerie
I have a table (TABLE_A) with an ID field that we use seq.nextval to populate on INSERT.
TABLE_A:
ID
<other stuff>
USER_NAME
And I have a second table (TABLE_B) which may contains multiple records for each ID:
TABLE_B:
ID
USER_NAME
When we insert into TABLE_A, we provide all the <other stuff> and the USER_NAME in the insert statement.
Is it possible to build an AFTER INSERT trigger to insert a row into TABLE_B using the ID and USER_NAME fields from TABLE_A? I haven't been able to find any examples where an AFTER INSERT trigger is used when the ID is not known until after the record is inserted into TABLE_A.
Thanks in advance for any insight!
Valerie