SQL DROP DEFAULT 关键字
DROP DEFAULT
DROP DEFAULT
命令用于删除 DEFAULT 约束。
要删除 DEFAULT 约束,请使用以下 SQL
SQL Server / Oracle / MS Access
ALTER TABLE Persons
ALTER COLUMN City DROP DEFAULT;
MySQL
ALTER TABLE Persons
ALTER City DROP DEFAULT;
DROP DEFAULT
命令用于删除 DEFAULT 约束。
要删除 DEFAULT 约束,请使用以下 SQL
SQL Server / Oracle / MS Access
ALTER TABLE Persons
ALTER COLUMN City DROP DEFAULT;
MySQL
ALTER TABLE Persons
ALTER City DROP DEFAULT;
If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]
If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]