autogenerate primary key in mysql server auto_increment code example Example: create table primary key auto increment mysql define primary key auto increment