SQL - Triggers
Given this trigger:
What happens if you update a product's price to -50?
CREATE TRIGGER trg_before_update BEFORE UPDATE ON products FOR EACH ROW BEGIN IF NEW.price < 0 THEN SET NEW.price = 0; END IF; END;
What happens if you update a product's price to -50?
