gray01 Posted May 8, 2003 Share Posted May 8, 2003 I\'ve got a few tables with auto-increment IDs. I want to delete all data and start again with empty tables. However, the auto-increment value is remembered, so the empty table isnt populated starting with ID = 1, but with the value before the data was deleted - is there a way to reset it? Quote Link to comment Share on other sites More sharing options...
pallevillesen Posted May 8, 2003 Share Posted May 8, 2003 ALTER TABLE tbl_name AUTO_INCREMENT = 1; P. Quote Link to comment Share on other sites More sharing options...
gray01 Posted May 8, 2003 Author Share Posted May 8, 2003 thanks biopv - i hope you get paid for technical support Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.