Jump to content

Primary Keys


SirChick

Recommended Posts

Hey guys quick quesiton,

 

Is there way to always make sure inserting new rows take a unique number in the database but not necessarily doing an "auto increment"

 

Because say the 3rd row was deleted that leaves ID 3 available.. then i would rather the next newest insert to take ID 3 rather than the one at the very end.. which is what happens using auto increment.. how is this done?

Link to comment
https://forums.phpfreaks.com/topic/75705-primary-keys/
Share on other sites

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.