Loading lesson path
Concept visual
Start at both ends
❮ SQL Keywords
command is used to delete a column in an existing table. The following SQL deletes the "ContactName" column from the "Customers" table:
DROP COLUMN ContactName;To drop a UNIQUE constraint, use the following SQL:
Formula
SQL Server / Oracle / MS Access:DROP CONSTRAINT UC_Person;DROP INDEX UC_Person;To drop a PRIMARY KEY constraint, use the following SQL:
Formula
SQL Server / Oracle / MS Access:DROP CONSTRAINT PK_Person;DROP PRIMARY KEY;To drop a FOREIGN KEY constraint, use the following SQL:
Formula
SQL Server / Oracle / MS Access:DROP CONSTRAINT FK_PersonOrder;DROP FOREIGN KEY FK_PersonOrder;To drop a CHECK constraint, use the following SQL:
Formula
SQL Server / Oracle / MS Access:DROP CONSTRAINT CHK_PersonAge;DROP CHECK CHK_PersonAge;