Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1562

Incomplete primary index on table (1 reply)

$
0
0
Hello,

I am experiencing a weird problem with MySQL Cluster.

I have a table where I have loaded 6.5 million records. Its a quite basic table with a phone number as a integer primary index, and then 3 more data fields.

+------------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+------------+------+-----+---------+-------+
| number | int(11) | NO | PRI | NULL | |
| numbertype | int(11) | YES | | NULL | |
| networkop | varchar(5) | YES | | NULL | |
| serviceop | varchar(5) | YES | | NULL | |
+------------+------------+------+-----+---------+-------+


the numbers are in the range 20000000-99999999.

When i query a number, etc SELECT * FROM num_table WHERE number=88389000, I get a result. But when i query SELECT * FROM num_table WHERE number=22304050, I get no result. But if a do a range query, etc SELECT * FROM num_table WHERE number BETWEEN 22300000 AND 22309999, I can see that the number 22304050 is actually there.

Does anybody have an idea as to why I cant query the number directly?

Viewing all articles
Browse latest Browse all 1562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>