Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the latest record id

Status
Not open for further replies.

manoq76

Programmer
Apr 1, 2002
1
MY
hi..

i have a problem regarding how to get the latest record no for increament value.

Is there a way to get this record no without query the record??

regards
farizan
 
select max(id) from table;
This will work if your id column is auto-increment as it wont re-use id's from deleted records. ***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top