SQL - Table Constraints
Given the table
products(id INT PRIMARY KEY, price DECIMAL CHECK (price > 0)), what happens if you run this query?INSERT INTO products (id, price) VALUES (1, -10);
