SQL DROP CONSTRAINT Keyword

DROP CONSTRAINT

The DROP CONSTRAINT command is used to delete a UNIQUE, PRIMARY KEY, FOREIGN KEY, or CHECK constraint.


DROP a UNIQUE Constraint

To drop a UNIQUE constraint, use the following SQL :

SQL Server / Oracle / MS Access:

ALTER TABLE Persons
DROP CONSTRAINT UC_Person;

MySQL:

ALTER TABLE Persons
DROP INDEX UC_Person;

Continue reading SQL DROP CONSTRAINT Keyword