Alex Dowgailenko writes:

> If the colum is set to unique, it will fill in 2. If not, it'll
> automatically goto 4 (or vice versa if I'm mistaken).
> 
> > I knew that if record at the Largest number of index being delete, the
> > number will be reused, but i have  a question:
> > what happen if i delete the record which the index number is between the
> > largest and the smallest, let say "i have 3 records within my
> > table, by some
> > reason, i got to delete the record in index 2 which is between 1
> > and 3, then
> > will it leave a index gap between or it will move the record of index 3 up
> > to index 2???

You're both wrong. You should test it, and see for yourselves that
unless you're using the old and obsolete ISAM table format,
auto_increment values are NEVER reused. This, of course, is true if
the auto_increment is on the first part of an index, and you don't
delete all rows in the table with a DELETE without a WHERE.

//C

sql

-- 
 Carl Troein - Círdan / Istari-PixelMagic - UIN 16353280
 [EMAIL PROTECTED] | http://pixelmagic.dyndns.org/~cirdan/
 Amiga user since '89, and damned proud of it too.


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to