Answers for "alter fk constraint sql server"

SQL
5

drop foreign key

ALTER TABLE table_name
DROP CONSTRAINT fk_name;
Posted by: Guest on June-04-2020
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 "SQL"

Browse Popular Code Answers by Language