Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Needs help urgent..
You are violating a basic rule of relational databases. Primary keys are
immutable.
Now that you have been sufficiently scolded, I see two choices (you eliminated a third).
"priya" <priya_at_starcomsoftware.com> wrote in message
news:1ae23258.0209162213.66a85c16_at_posting.google.com...
> Hi..
>
> I want to update two tables which have ref. integrity constraints among
them.
> When I'm updating master table's primary key it gives me error as
>
> 'Integrity constraint violated .. child record found'
>
> When I'm updating detail table's ref. key gives me error as
>
> 'Integrity constraint violated.. no parent record found'
>
> Is there any way to solve above problem other than enabling / disabling
> constraints before updattion ?
>
> Thanks,
> Priya
Received on Tue Sep 17 2002 - 07:33:31 CDT