Answers for "how to set tables primary key alter"

SQL
1

change primary key sql

ALTER TABLE <Table_Name>
DROP CONSTRAINT <constraint_name>

ALTER TABLE <Table_Name>
ADD CONSTRAINT <constraint_name> PRIMARY KEY (<Column1>,<Column2>)
Posted by: Guest on September-21-2020
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 set tables primary key alter"

Code answers related to "SQL"

Browse Popular Code Answers by Language