📜  php代码示例中的外键

📅  最后修改于: 2022-03-11 14:53:36.647000             🧑  作者: Mango

代码示例1
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)
);