MySQL Forums
Forum List  »  General

Re: LOAD DATA INFILE & behaviour of AUTO_INCR regarding order
Posted by: Peter Brawley
Date: September 01, 2014 11:09AM

> I need to put the values 1-24 for first hour, second hour etc

Auto_increment does not guarantee sequentiality. It only guarantees uniqueness. If you need sequential values, you'll need to code that (see some examples under "Sequences" at http://www.artfulsoftware.com/queries.php).

Options: ReplyQuote


Subject
Written By
Posted
Re: LOAD DATA INFILE & behaviour of AUTO_INCR regarding order
September 01, 2014 11:09AM


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.