Jump to content

[SOLVED] Reset primary key


thefollower

Recommended Posts

I just cleaned out my database so its pure empty but the primary key still begins one up from the record that was once there which is no longer... how do you set the primary key back to 1 so it goes up as 1 2 3 etc again ?

 

I remember doing it before like 3 years ago with php but totally forgotten the syntax to do it :S

 

Hope you can help!

Link to comment
https://forums.phpfreaks.com/topic/123976-solved-reset-primary-key/
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.