The following SQL creates a UNIQUE constraint on the "ID" column when the To drop a UNIQUE constraint, use the following SQL: MySQL: ALTER TABLE .