how to add auto increment id in mysql creating table code example Example: create table primary key auto increment mysql define primary key auto increment