Click to See Complete Forum and Search --> : MySQL: how to change autoindex?


Jazztronik
06-16-2008, 03:46 AM
I had to delete a lot of rows at the end of a table and I'd like to reposition the autoindex just after the last remaining row.

chazzy
06-16-2008, 09:33 AM
you mean auto increment?
ALTER TABLE t2 AUTO_INCREMENT = value;

http://dev.mysql.com/doc/refman/5.0/en/alter-table.html

Jazztronik
06-17-2008, 10:33 AM
Yes, I did. Thank you! :) :)