Answers for "how to add primary key to table in database"

SQL
0

add primary key to table

ALTER TABLE Persons

ADD PRIMARY KEY (ID);
Posted by: Guest on June-07-2021
0

add primary key to database sql

CREATE TABLE Persons (
    ID int NOT NULL,
    LastName varchar(255) NOT NULL,
    FirstName varchar(255),
    Age int,
    PRIMARY KEY (ID)
);
Posted by: Guest on May-04-2021

Code answers related to "how to add primary key to table in database"

Code answers related to "SQL"

Browse Popular Code Answers by Language