Jump to content

Re-number DB entries


soycharliente

Recommended Posts

I have a table with 1300ish entries. The table has fields: id, title, category, desc, etc... Some of the rows have been deleted for various reasons. So there are lots of gaps in the id numbering. It doesn't matter that they are there since I wrote the code to ORDER BY id for every load. I was just curious if it was possible to take all the entries that are there and renumber them sequentially while also setting the autoincrement_next to be whatever it would need to be. Is there some command in MySQL or button/choice in phpMyAdmin to do this?

 

Again, just curious.

Link to comment
https://forums.phpfreaks.com/topic/164126-re-number-db-entries/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.