Home » RDBMS Server » Server Administration » database triggers b/n a master and detail table
database triggers b/n a master and detail table [message #374997] Tue, 17 July 2001 22:34 Go to next message
HAB
Messages: 3
Registered: July 2001
Junior Member
here's the scenario for my problem:
I have 2 tables, table1 has a primary that is a foreign key in table2 (table2 has the foreign key constraint). I created a database trigger on table1 for updates, inserts and deletes to update, insert or delete into table2. when i insert, update, or delete into table1 i recieve an error message that Oracle can not update/insert/delete.
When i remove the foreign key constraint from table2 (that tied table2 with table1), then i can insert/update/delete into table1 and the database trigger works.
Is there a way to make the database trigger work while keeping the foreign key constraint in table2?
Any help is appreciated,
thanx...
Re: database triggers b/n a master and detail table [message #375007 is a reply to message #374997] Wed, 18 July 2001 09:31 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
http://osi.oracle.com/~tkyte/Mutate/
Previous Topic: Slow Retrieval of simple sql statement
Next Topic: Top N records
Goto Forum:
  


Current Time: Wed Jul 03 03:24:19 CDT 2024