At 2:31 PM +0100 8/21/01, Brian Leyland wrote:
>Hello,
>
>I need to reset the auto increment value on a database.
>
>Can anyone help.
>
>
>Thanks
>
>Brian

If it's a MyISAM table and you mean that you want to reset the sequence
so that MySQL will next use the smallest currently unused value, do this:

ALTER TABLE tbl_name AUTO_INCREMENT = 0

If you mean something else, please specify.

-- 
Paul DuBois, [EMAIL PROTECTED]

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