MySQL 8 has Database sequence generator code example Example: create table primary key auto increment mysql define primary key auto increment