Foreign key [message #149426] |
Thu, 01 December 2005 14:16 |
orate
Messages: 16 Registered: September 2005
|
Junior Member |
|
|
I have a table A with primary key a, and a table B with a column b which references column a in A (foreign key).
There is a form to maintain table A (query, insert, update and delete).
If the user tries to update the field a of a record, and there are rows in B that reference that value of a,
1 - does Oracle Forms allow that update?
2 - in that case, how can I update the rows of B accordingly?
|
|
|
|
|
Re: Foreign key [message #151218 is a reply to message #149426] |
Tue, 13 December 2005 16:58 |
orate
Messages: 16 Registered: September 2005
|
Junior Member |
|
|
I set "Update allowed" to false at item a.
"Delete allowed" is set to true at block A, but if there are rows in B which reference a, I don't allow the deletion.
|
|
|
|
|