say in mysql I have a column that’s id, just int auto increment.
Is there any way I can use php to tell me when there is an id that’s been removed?
Like say i have
5
6
7
8
10
I need it to tell me that the 9 is missing, and continue this for all the id’s. Is there any way to do this?
Thanks
You need a table that contains all values. Then it’s simple to do a left join to find missing ids.