Home » SQL » Keyword DROP DEFAULT SQL : Fungsi dan Contohnya

Keyword DROP DEFAULT SQL : Fungsi dan Contohnya

by Hanifah Nurbaeti
by Hanifah Nurbaeti

DROP DEFAULT

Perintah DROP DEFAULT digunakan untuk menghapus constraint DEFAULT.

Untuk menghapus constraint DEFAULT, gunakan SQL berikut ini:

SQL Server / Oracle / MS Access:

ALTER TABLE Persons
ALTER COLUMN Alamat DROP DEFAULT;

MySQL:

ALTER TABLE Persons
ALTER Alamat DROP DEFAULT;

You may also like