Bug #6556 | Alternative to max(id) for auto_increment | ||
---|---|---|---|
Submitted: | 10 Nov 2004 17:48 | Modified: | 25 Jan 2005 0:47 |
Reporter: | Winfried | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S4 (Feature request) |
Version: | OS: | ||
Assigned to: | CPU Architecture: | Any |
[10 Nov 2004 17:48]
Winfried
[25 Jan 2005 0:47]
Paul DuBois
To renumber the column, it's easier to use ALTER TABLE to drop the column and re-add it. To reset the counter back down to the next unused value, use ALTER TABLE tbl_name AUTO_INCREMENT = 1.