Alter table to change the auto_increment setting and comments
mysql>
mysql> CREATE TABLE CITY_NAMES
-> (SEQNO INTEGER UNSIGNED AUTO_INCREMENT
-> NOT NULL PRIMARY KEY,
-> NAME VARCHAR(30) NOT NULL);
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql>
mysql>
mysql> ALTER TABLE CITY_NAMES
-> AUTO_INCREMENT = 10000
-> COMMENT = 'New comment';
Query OK, 0 rows affected (0.01 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql>
mysql> drop table city_names;
Query OK, 0 rows affected (0.00 sec)
Related examples in the same category