I have connected with my database through two programs: MySql Workbench and Sequel Pro (It's a ClearDB MySQL database hosted on heroku). I have created a simple table:
CREATE TABLE Country(
CountryID int AUTO_INCREMENT NOT NULL,
Name varchar(50),
PRIMARY KEY(CountryID)
);
and then I added a few entries:
INSERT INTO Country(Name) VALUES ("Poland");
INSERT INTO Country(Name) VALUES ("Germany");
INSERT INTO Country(Name) VALUES ("Sweden");
INSERT INTO Country(Name) VALUES ("France");
the problem is when I do SELECT * FROM city
, I get the results as below, where the PRIMARY KEY is being auto incremented in alphabetical/lexicographical order:
1, Poland
21, Germany
31, Sweden
41, France
And I want the PRIMARY KEY to be 1, 2, 3, 4 etc.
I can't find any settings for that, nor any posts that would suggest why is this happening. Anyone has got any clue?