mysql create table primary key autoincrement code example
Example 1: create a table with an id in mysql
CREATE TABLE DemoT (
Personid int NOT NULL AUTO_INCREMENT,
LastName varchar(111) NOT NULL,
FirstName varchar(111),
Age int,
PRIMARY KEY (Personid)
);
Example 2: create table primary key auto increment mysql
define primary key auto increment