![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
Regular Coder ![]() Join Date: Dec 2002
Location: UK
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
getting highest id in table
I have a table with a column called id, set to autoincrement.
I have a admin section, on that page I want to see what the highest id is. something like? SELECT * id FROM table_name WHERE id = max ? Thanks |
|
|
|
|
|
PM User | #3 |
|
Master Coder ![]() ![]() Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
other option:
select max(id) from tablename but what do you wanna use it for
__________________
Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|