Dynadot — .com Transfer

Max ID

Spacemail by SpaceshipSpacemail by 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 Domains — AI StorefrontUnstoppable Domains — AI Storefront
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
•••
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back