auto increment MySQL
Posted: Sun Nov 30, 2014 6:50 pm
i ant to find the next auto increment number
currently with livecode im using SELECT MAX(id) FROM database then adding 1 to it to get the next id that will be used.
however what if i have 6 items, the next to be used will be 7. but if i delete item 6 from the database using my method will give me 6 as the next available one however MySQL will set the next entry as 7
currently with livecode im using SELECT MAX(id) FROM database then adding 1 to it to get the next id that will be used.
however what if i have 6 items, the next to be used will be 7. but if i delete item 6 from the database using my method will give me 6 as the next available one however MySQL will set the next entry as 7