Unstoppable Domains

Max ID

Spaceship Spaceship
Watch

buddybuddha

Established Member
Impact
2
Is there a quick way to tell what the maximum value for the id column is in a mysql db?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
Code:
SELECT `id` FROM `table_name` ORDER BY `id` DESC LIMIT 0,1

That will retrieve the very last column with only the `id` field returned. Then, depending on what language you are using, get the result of that. I don't know of any quicker ways though. (I havn't error checked that, :bah: )
 
0
•••
Thanks!
 
0
•••
PHP:
SELECT max(id) FROM table_name
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back