reset auto_increment field mysql

From: Date: Tue, 12 Mar 2002 11:08:56 +0000
Subject: reset auto_increment field mysql
Groups: php.general 
Request: Send a blank email to php-general+get-88178@lists.php.net to get a copy of this message
I have a mysql table which contains an id field which is set to auto_increment. I have a script which empties this database at regular intervals. My problem is that the auto_increment field won't reset to 0 after deleting all of tha data, but continue incrementing from where it left. How can i solve this problem.. I want id to reset to 0 when i delete the contents of the table. Can someone help?

« previous php.general (#88178) next »