MySQL Forums
Forum List  »  Newbie

Re: How to force auto-increment field to increase monotonically
Posted by: laptop alias
Date: April 20, 2011 05:36AM

An auto-incrementing INTEGER allows values from 1 - 4294967295

How many skills were you thinking of inserting.

If the id has any meaning beyond the immediate scope of the database then don't use auto_increment. Despite its name, that's not what its for. Its purpose, as GD explained, is only to ensure uniqueness (of the PK). It could just as easily insert any unused random number between 1 and 4292967295 - but I imagine this would be harder for MySQL to manage.

Options: ReplyQuote




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.