Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everybody , in oracle 10g there is no restrict action ondelete , which prevents deleting the referenced record ... how to implement this constraint using a trigger or a check or whatever ...
thanks in advance
Posted

1 solution

I think you have misunderstood something. If you create a foreign key constraint in Oracle, the default action is to prevent a deletion on master table if child records exist.

For example, have a look at: http://docs.oracle.com/cd/B19306_01/server.102/b14200/clauses002.htm#i1015699[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900