Skip to content

i5awlah/SQL-Database-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SQL-Database-Project Notes:

1- Create table order_products should be after Create table products becouse I added forign key constraint in CREATE statment.

2- Before delete row from products table, you should run this code:

ALTER TABLE order_products

DROP FOREIGN KEY order_products_ibfk_2;

ALTER TABLE order_products

ADD CONSTRAINT order_products_ibfk_2

FOREIGN KEY (product_id)

REFERENCES products (id)

ON DELETE CASCADE;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published