Is it possible to run an automatic job/SQL query/queries on my database every 24 hours?
I'm trying to reset my ID column to keep the numbers in order
At the moment my database looks like this:
As you can see the id's for each entry are getting messy when the old ones are deleted and new ones are added, it just keeps counting up
I have the script needed to delete and recreate the ID column with auto_increment, but I don't want to run it manually every day
Thanks!
I'm trying to reset my ID column to keep the numbers in order
At the moment my database looks like this:
Code:
ID Name
2 random entry here
4 random entry here
9 random entry here
15 random entry here
As you can see the id's for each entry are getting messy when the old ones are deleted and new ones are added, it just keeps counting up
I have the script needed to delete and recreate the ID column with auto_increment, but I don't want to run it manually every day
Thanks!