sql multiple foreign keys code example
Example: multiple foreign key sql
CREATE TABLE table1 (
column1 int NOT NULL,
column2 int NOT NULL,
FOREIGN KEY(column1) REFERENCES table2(column3),
FOREIGN KEY(column2) REFERENCES table3(column4)
);
CREATE TABLE table1 (
column1 int NOT NULL,
column2 int NOT NULL,
FOREIGN KEY(column1) REFERENCES table2(column3),
FOREIGN KEY(column2) REFERENCES table3(column4)
);