Answers for "sql alter table add foreign key to existing column"

SQL
0

alter table add key sql server

ALTER TABLE Persons
ADD CONSTRAINT PK_Person PRIMARY KEY (ID,LastName);
Posted by: Guest on January-26-2021
1

foreign key in php

CREATE TABLE Orders (
    OrderID int NOT NULL,
    OrderNumber int NOT NULL,
    PersonID int,
    PRIMARY KEY (OrderID),
    CONSTRAINT FK_PersonOrder FOREIGN KEY (PersonID)
    REFERENCES Persons(PersonID)
);
Posted by: Guest on September-12-2020

Code answers related to "sql alter table add foreign key to existing column"

Code answers related to "SQL"

Browse Popular Code Answers by Language