Answers for "auto increment primary key mysql"

SQL
1

make a field auto_increment mysql

ALTER TABLE document MODIFY COLUMN document_id INT auto_increment
Posted by: Guest on September-08-2021
3

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)
);
Posted by: Guest on April-27-2020

Code answers related to "auto increment primary key mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language