create a table with an id in mysql
snippet in sql

create a table with an id in mysql

user5299

CREATE TABLE DemoT (
    Personid int NOT NULL AUTO_INCREMENT,
    LastName varchar(111) NOT NULL,
    FirstName varchar(111),
    Age int,
    PRIMARY KEY (Personid)
);