Description
The SQL keyword DROP DEFAULT is used to delete a DEFAULT constraint permanently from a database.
The syntax has a minor difference between the database systems as mentioned below.
Syntax for MySQL database system.
ALTER TABLE customers
ALTER city DROP DEFAULT;
Syntax for SQL Server or Oracle or MS Access database systems.
ALTER TABLE customers
ALTER COLUMN city DROP DEFAULT;