Answers for "how to add primary key while creating table in sql"

SQL
2

create table with primary key

CREATE TABLE student_id
(
Column1 datatype,
Column2 datatype,
Column3 datatype,

PRIMARY KEY (student_id);
Posted by: Guest on August-20-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 while creating table in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language