MySQL Tutorial MySQL Advanced MySQL Database Account Management MySQL References

MySQL DROP DEFAULT Keyword



The MySQL DROP DEFAULT keyword is used to delete a DEFAULT CONSTRAINT.

DROP DEFAULT constraint

To drop DEFAULT constraint from City column of Employee table, the following statement can be used:

ALTER TABLE Employee
ALTER City DROP DEFAULT;

OR

ALTER TABLE Employee
ALTER COLUMN City DROP DEFAULT;

❮ MySQL Keywords