Answers for "create foreign key on sql server"

SQL
2

sql foreign key

CREATE TABLE orders (
id int NOT NULL,
user_id int,
product_id int,
PRIMARY KEY (id),
FOREIGN KEY (user_id) REFERENCES users(id),
FOREIGN KEY (product_id) REFERENCES products(id)
);
Posted by: Guest on January-07-2021

Code answers related to "create foreign key on sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language