Question: When altering the 'orders' table, you need to add a foreign key constraint named ' fk _ order _ customer' on the 'customer _ id

When altering the 'orders' table, you need to add a foreign key constraint named 'fk_order_customer' on the 'customer_id' column, with cascading deletes to the 'customers' table. Fill in the blank to complete the code snippet.
ALTER TABLE orders
ADD fk_order_customer
KEY (customer_id) REFERENCES customers(id)
 When altering the 'orders' table, you need to add a foreign

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!