How to set an AUTO_INCREMENT field with to start with the value 6000 in mysql?
问题 How to set a field auto increment without auto increment key in mysql or how set a field auto increment with start value 6000 in mysql? 回答1: ... how set a field auto increment with start value 6000 in mysql? If your table already exists: ALTER TABLE your_table AUTO_INCREMENT = 6000; If you are creating your table from scratch: CREATE TABLE your_table () AUTO_INCREMENT = 6000; Source and further reading: MySQL 5.1 Reference Manual :: Using AUTO_INCREMENT Test case: CREATE TABLE users ( user_id