I have a table indexed on column=ID and it is a 5-digit integer.
It is a very old table and was never auto incremented.
I want to list all unused IDs.
I can do it with a SELECT * ORDER BY statement and then run the result against an incremented for() loop, but I was wondering if anyone knows if a SQL Query Statement to do this within MySQL or if you have a more clever method than the approach I am planning to take.
Thanks
 
     
     
     
    