MySQL Forums
Forum List  »  NDB clusters

Re: unique key and nulls
Posted by: Stewart Smith
Date: May 09, 2006 11:42PM

You mean a normal UNIQUE index?

create table t1 (a int unique) engine=ndb;
insert into t1 values (NULL);
insert into t1 values (NULL);
insert into t1 values (NULL);
insert into t1 values (NULL);
insert into t1 values (1);
insert into t1 values (1);


Only the last query there will produce an error.

Stewart Smith, Software Engineer - MySQL Cluster
MySQL AB, www.mysql.com

Jumpstart your cluster:
http://www.mysql.com/consulting/packaged/cluster.html

Options: ReplyQuote


Subject
Views
Written By
Posted
2209
May 09, 2006 06:43AM
Re: unique key and nulls
1528
May 09, 2006 11:42PM
1303
May 10, 2006 06:01AM
2666
May 10, 2006 07:52AM
1589
May 10, 2006 07:10PM
1302
May 11, 2006 04:15AM
1446
May 11, 2006 03:20PM
1153
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.