Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto_increment question

Status
Not open for further replies.

steijssen

Programmer
Mar 25, 2001
92
0
0
BE
Hi,

I have a table with an auto_increment field. When I delete a row, and insert a new one, it continues to count as if the row was never deleted. Count: 1,2,3,4 delete 4, insert new record, it counts on like 1,2,3,5

Question is can I reset this, so that next time, it starts at 4 again?
I know you can reset an auto_increment with the delete from table query, but I need to keep the current records..
 
You don't keep them....

The only solution just that delete your table.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top