List:General Discussion« Previous MessageNext Message »
From:Russ Brown Date:June 9 2004 12:51pm
Subject:Multi-row INSERTs
View as plain text  
Hello,

I tried searching the archives for this, but since the search tool is  
returning no results when searching for 'INSERT' I figured it's not  
working. :-)

Anyway, my question is this. If I do a single-statement multi-line insert,  
are the auto-increment IDs of the rows inserted guaranteed to be  
sequential? Bear in mind also that I'm using InnoDB tables here.

Now, I can't find the answer to this in the documentation, and nobody I've  
asked knows for a fact what the answer is. I personally suspect that it  
is, since I don't think any other operation will be able to insert in the  
middle of the multi-row insert, since that will be executed as one  
statement (which is what it is).

However, I can't use this unless I know for an absolute fact that this is  
indeed the case.

Conversely, if I know for a fact that it is not guaranteed, I know that I  
need to think of something else. :-)

Thanks,

-- 

Russ
Thread
Multi-row INSERTsRuss Brown9 Jun
  • Re: Multi-row INSERTsJigal van Hemert9 Jun
    • Re: Multi-row INSERTsRuss Brown9 Jun
      • RE: Multi-row INSERTsDonny Simonton10 Jun
        • Re: Multi-row INSERTsRuss Brown10 Jun