Auto-Increment, Last 3?
Moderator: General Moderators
-
stickman373
- Forum Commoner
- Posts: 30
- Joined: Mon Jul 22, 2002 10:26 am
Auto-Increment, Last 3?
Ihave a field called id in my mysql database and it's auto-incrementing, so I want to get the last 3 id values from the database. And some records could get deleted so it isn't always going to be records like 6,5,4. Say I deleted 4 then the the last 3 rows would be 6,5,3. How do i find each of the last 3 id values please
- RandomEngy
- Forum Contributor
- Posts: 173
- Joined: Wed Jun 26, 2002 3:24 pm
- Contact: