bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL DROP DEFAULT Keyword

Drop Default

The DROP DEFAULT command is used to delete a DEFAULT constraint.

To drop a DEFAULT constraint, use the following SQL:

SQL Server / Oracle / MS Access:

ALTER TABLE Persons
ALTER COLUMN City DROP DEFAULT;

MySQL

ALTER TABLE Persons
ALTER City DROP DEFAULT;

Previous

SQL DROP DATABASE Keyword

Next

SQL DROP INDEX Keyword