| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Does Codd's view of a relational database differ from that ofDate&Darwin?[M.Gittens]
paul c wrote:
> Jan Hidders wrote:
>> >> Another small thing is updating primary keys. If a primary key has >> accidentally been entered wrong and you want to fix that with an >> update then it is usually not possible to simply update it, and the >> problem gets even worse if it is also refered to by foreign keys. In >> an ER model this is a non-problem.
Splitting the update in a delete and an insert makes the situation even more complex. Assume a relation S that has a foreign key to the primary key of R. For an update to the PK of a tuple in R it is easy to see what it means to cascade that update to S. If you split the update in a delete and an insert this is not so simple because on the delete you would have to either (1) delete the corresponding tuples in S or (2) nullify their foreign keys, so if you then follow with only the insert you will have lost information. So, yes, there is a logical difference.
![]() |
![]() |