Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unique if not null constraint

Roger25Mar 11 2009 — edited Mar 11 2009
Hi,

i have to add a constraint to a field, that field being unique but when is not null. i should mention that i have already another pk defined for this table.

... add constraint un_elevi_CNP unique(CNP) --but just if it's not null

how to do this?

Regards,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2009
Added on Mar 11 2009
6 comments
1,509 views