SQL - Triggers
Consider this trigger for audit logging deletions:
What will be the effect of this trigger?
CREATE TRIGGER audit_delete BEFORE DELETE ON orders FOR EACH ROW BEGIN INSERT INTO audit_log(order_id, deleted_at) VALUES (OLD.id, NOW()); END;
What will be the effect of this trigger?
