Check out example codes for "create a table with an id in mysql". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com