create a table with auto_increment in mysql code example
Example 1: mysql set id auto increment
ALTER TABLE users AUTO_INCREMENT=1001;
Example 2: create table primary key auto increment mysql
define primary key auto increment
ALTER TABLE users AUTO_INCREMENT=1001;
define primary key auto increment