Re: Resetting auto_increment

From: Date: Tue, 14 Dec 2010 18:44:09 +0000
Subject: Re: Resetting auto_increment
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-47538@lists.php.net to get a copy of this message
On Tue, Dec 14, 2010 at 13:02, Ethan Rosenberg <ethros@earthlink.net> wrote: >> >>    UPDATE tablename AUTO_INCREMENT=1; > > mysql> update Visit3 auto_increment=1; > ERROR 1064 (42000): You have an error in your SQL syntax; check the manual > that corresponds to your MySQL server version for the right syntax to use > near '=1' at line 1 > > Same error if auto_increment is in caps. > > What did I do wrong? Sorry, you didn't --- I did. I was working on something for myself simultaneously and somehow crossed wires. My apologies. That's not an UPDATE query, it's an ALTER TABLE query. ALTER TABLE Visit3 AUTO_INCREMENT=1; Again, my apologies. -- </Daniel P. Brown> Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/

« previous php.db (#47538) next »