Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to say one of a group of columns is required?
>
> It looks like I need the trigger!
>
> Andy
Why don't You use a constraint
CHECK(my_key IS NOT NULL OR my_lookup1 IS NOT NULL OR ...)?
> >> I have a table with three columns - one or more of which is required.
> >> MY_KEY
> >> MY_LOOKUP1
> >> MY_LOOKUP2
> >> MY_LOOKUP3
> >>
> >> where at least one of the MY_LOOKUPs is required.
> >>
> >> Is there a check constraint for this?
![]() |
![]() |