You can try two easy things... Truncate table table_name (this happen to be syntax of sql server, you can check if Mysql supports it)
Second you can drop table and generate it again.. :) Roma -----Original Message----- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 1:41 PM To: MySQL General Subject: AUOT_INCREMENT from the beginning Hi all. I have multiple tables in which I need to delete rows from the beginning. I have them stored with an auto_increment id but I don't want the records to start from 5 but from 1... is there a way to use something like ALTER TABLE tablename AUTO_INCREMENT = 1; but also that will make the counting start truly from 1??? Thanks, Cesar Aracena CE / MCSE+I Neuquen, Argentina +54.299.6356688 +54.299.4466621 sql, query --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php