SQL - Table Constraints
Given the table employees with columns id INT PRIMARY KEY and name VARCHAR(100) NOT NULL, what happens when you run this query?
INSERT INTO employees (id, name) VALUES (1, NULL);
Given the table employees with columns id INT PRIMARY KEY and name VARCHAR(100) NOT NULL, what happens when you run this query?
INSERT INTO employees (id, name) VALUES (1, NULL);
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions