I would like to select the max value in sql of a column ABC
in table XYZ
where that column ABC
is on auto increment. Lets say that I have insert several rows into the table XYZ
and then deleted those rows. We all know that auto increment value for that table would not be zero any more even if the table's rows are deleted.
Now in this case how would I get the max value or the highest value last used but deleted?