I need to remove a FOREIGN KEY constraint to add new data but I can't seem to do it.
I know it would be:
ALTER TABLE Clients DROP CONSTRAINT constraint_name
but that is if you gave the constraint a name, I created the foreign key constraint when I created the table, and did not designate a name (i.e. FOREIGN KEY (branchNo) references Branch(branchNo)
I would like to Drop the table and start over but it has a primary key which is referenced elsewhere.
How can I get rid of this constraint?
Thanks
I know it would be:
ALTER TABLE Clients DROP CONSTRAINT constraint_name
but that is if you gave the constraint a name, I created the foreign key constraint when I created the table, and did not designate a name (i.e. FOREIGN KEY (branchNo) references Branch(branchNo)
I would like to Drop the table and start over but it has a primary key which is referenced elsewhere.
How can I get rid of this constraint?
Thanks