PDA

View Full Version : how to make a unique key 1 again?


shedokan
11-25-2007, 01:58 AM
I want to makea unique number 1 again.
how?

Fumigator
11-25-2007, 11:26 AM
Are you talking about an auto-increment column? And you want to reset it to 1?

http://dev.mysql.com/doc/refman/4.1/en/example-auto-increment.html

shedokan
11-25-2007, 01:31 PM
yes exactly.

shedokan
11-25-2007, 07:40 PM
never mnd I found a solution:
ALTER TABLE yourtablehere AUTO_INCREMENT=1

Fumigator
11-25-2007, 11:13 PM
Yeah that command was in the link I provided.