SQL - Table Constraints
Why does this statement cause an error?
CREATE TABLE employees (id INT NOT NULL, name VARCHAR(50) NOT NULL, age INT NOT NULL DEFAULT NULL);
Why does this statement cause an error?
CREATE TABLE employees (id INT NOT NULL, name VARCHAR(50) NOT NULL, age INT NOT NULL DEFAULT NULL);
age column is NOT NULL but has DEFAULT NULL, causing an error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions