Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005
    Posts
    8

    Unanswered: is it possible to reset auto increment?

    i was wondering if it was possible to reset the increment back to 0, once all the data in the table is deleted??

    thanks in advance
    g

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    yes

    alter table foo auto_increment=1
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •