Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Unique constraint over 2 columns with allowable NULLs
vjayprabhu_at_gmail.com schrieb:
> On Nov 30, 5:09 am, Maxim Demenko <mdeme..._at_gmail.com> wrote:
> > hey Maxim, > > Could you explain what you are doing here when creating the index? Has > you tried creating it or is this more of a logical solution you seem > to be giving? > > Regards, > > VJ
As far as i understood, the OP requirement is to implement an integrity
constraint which follows the rules:
1) As long as both columns are not null, they should be unique
2) If any of both columns is NULL, non unique values should be allowed.
If my interpretation is correct, suggested index should simulate this
kind of constraint.
Just curiious, why are you asking about - do you have another
understanding of OP requierements, or , do you think, this index is not
supposed to work the way i described?
Best regards
Maxim Received on Thu Dec 06 2007 - 00:34:43 CST
![]() |
![]() |