Question: You need to change the foreign key constraint on a column. Below is the SQL you are using but it is generating an error. What
You need to change the foreign key constraint on a column. Below is the SQL you are using but it is generating an error. What is the error?
alter table order
alter constraint ordercustomeridfk foreign key customerid
references customercustomerid;
Which one of these is the right answer
A There is no alter constraint command in SQL In order to make changes to the constraint you need to drop the table and recreate it with the new constraint.
B There is no alter constraint command in SQL In order to make changes to a constraint you need to add another constraint to this column.
C The alter constraint statement needs to appear first.
D There is nothing wrong with this statement.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
