someone submitted a 1000 junk links which i deleted all but when a new link is submitted it gets an ID=8001 how can i change the ID count back to 7001
Jul 2, 2006, 9:04 PM
User (276 posts)
Jul 2, 2006, 9:04 PM
Post #2 of 5
Views: 2173
There is no real reason to do this - the ID number is used for tracking records internally and is mostly 'invisible' to the user.
If you really want to change it, you run the following MySQL query:
ALTER TABLE tablename AUTO_INCREMENT=x
where x is the number you want to start numbering new records from. Personally I wouldn't worry about it - we get ID numbers for free anyway
.
If you really want to change it, you run the following MySQL query:
ALTER TABLE tablename AUTO_INCREMENT=x
where x is the number you want to start numbering new records from. Personally I wouldn't worry about it - we get ID numbers for free anyway
