Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Imposing Functional Dependencies
You can do this with a BEFORE INSERT trigger. Though you might want to also
think about BEFORE UPDATE too if the values can be changed after insert.
Daniel Morgan
Yash wrote:
> Hi,
> I have a table myTable(A,B,C,D). I know that for a given C value, the
> value of D is fixed. Thus C functionally determines D. I don't want to
> normalise the table. I only want to enforce this constraint so that nobody
> inserts rows that have different values for the same value of C. How do I
> set the constarint? I am looking for the Oracle DDL statement in particular.
>
> Thanks.
Received on Thu Feb 07 2002 - 14:02:35 CST
![]() |
![]() |