PostgreSQL - Triggers in PostgreSQL
Identify the issue in this BEFORE DELETE trigger snippet:
IF OLD.user_id IS NULL THEN
RAISE EXCEPTION 'User ID missing';
END IF;
IF OLD.user_id IS NULL THEN
RAISE EXCEPTION 'User ID missing';
END IF;
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions