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: Reply• Quote


Subject
Views
Written By
Posted
2617
May 09, 2006 06:43AM
Re: unique key and nulls
1719
May 09, 2006 11:42PM
1511
May 10, 2006 06:01AM
2863
May 10, 2006 07:52AM
1753
May 10, 2006 07:10PM
1452
May 11, 2006 04:15AM
1623
May 11, 2006 03:20PM
1318
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.