mysql primary key id auto_increment within a range code example Example: create table primary key auto increment mysql define primary key auto increment