Taking this example from the MariaDB knowledgebase:
CREATE TABLE t1 (
a INT UNSIGNED AUTO_INCREMENT PRIMARY_KEY,
b VARCHAR(20) NOT NULL UNIQUE
);
ALTER TABLE t1 MODIFY b VARCHAR(40);
- Will
bstill beNOT NULLafter this statement? - Will
bstill have a uniqueness constraint attached to it?
Assume the latest release of MariaDB.