César,
Thursday, June 27, 2002, 8:41:25 PM, you wrote:

CA> Hi all. I have multiple tables in which I need to delete rows from the
CA> beginning. I have them stored with an auto_increment id but I don't want
CA> the records to start from 5 but from 1... is there a way to use
CA> something like ALTER TABLE tablename AUTO_INCREMENT = 1; but also that
CA> will make the counting start truly from 1???

You can also run myisamchk with --set-auto-increment option.

-A or --set-auto-increment[=value]
           Force AUTO_INCREMENT to start at this or higher value. If
           no value is given, then sets the next AUTO_INCREMENT value
           to the highest used value for the auto key + 1.




-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
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