Jump to content

Fetching highest primary key from mysql


slpctrl

Recommended Posts

Dare I ask...  Why do you want the highest primary key?

 

 

If you want it for the reason I expect, you shouldn't do that.  You aren't planning to manually generate ascending numbers are you?

 

It could be for something like the "newest members" or "recent posts" - not just for manual increments to an ID

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.