问题
I'm confused by this syntax error I keep getting when I try to execute:
DBCC CHECKIDENT('database', RESEED, 1)
In PHPMyAdmin...
Error:
#1064 - 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 'DBCC CHECKIDENT('database', RESEED, 1)' at line 1
The result looks like this

回答1:
DBCC CHECKIDENT('table', RESEED, 1)
is for SQL Server.
Use alter table ... auto_increment
instead. http://dev.mysql.com/doc/refman/5.0/en/alter-table.html
来源:https://stackoverflow.com/questions/6963363/mysql-dbcc-checkident-syntax-error