MySQL Forums
Forum List  »  NDB clusters

unique key and nulls
Posted by: richard horan
Date: May 09, 2006 06:43AM

I don't think this is possible but...

is there a way to have a unique key (not composite) and accept nulls as a valid value?

I have a need to have a column that all values must be unique unless the value is null. I don't want to have to do a select count(*) or exists to see if the value is there already.

Options: Reply• Quote


Subject
Views
Written By
Posted
unique key and nulls
2608
May 09, 2006 06:43AM
1715
May 09, 2006 11:42PM
1506
May 10, 2006 06:01AM
2857
May 10, 2006 07:52AM
1748
May 10, 2006 07:10PM
1447
May 11, 2006 04:15AM
1617
May 11, 2006 03:20PM
1312
May 11, 2006 04:01PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.