auto_increment not in order
I created a table thus:
CREATE TABLE kontakter ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(25) );
The column looks like this:
| id | int(11) | NO | PRI | NULL | auto_increment |
And it gives me this output when SELECT * FROM kontakter (here I removed all other columns than ID);
+----+
| id |
+----+
| 0 |
| 4 |
| 1 |
| 5 |
| 6 |
+----+
As you can see it's not in order and the number 3 is missing.
Can someone explain for me why this happens?
MySQL 5.1.41, Debian/Ubuntu.
Still a MySQL newbie.
Subject
Written By
Posted
auto_increment not in order
September 17, 2010 01:28AM
September 17, 2010 02:39AM
September 17, 2010 07:49AM
September 17, 2010 08:28AM
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.