Answers for "how to add primary key in create table statement"

SQL
1

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 table

ALTER TABLE Persons

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

Code answers related to "how to add primary key in create table statement"

Code answers related to "SQL"

Browse Popular Code Answers by Language