statement
DROP TRIGGER
Removes automatic behavior from a PostgreSQL table. It does not remove rows written by earlier trigger executions. Example target: PostgreSQL 17. Use only the isolated starter dataset; setup and expected results are in the batch evidence.
Formal Syntax & Structure
sql syntaxsql
DROP TRIGGER name ON tableWorking Example
Example Snippetsql
CREATE FUNCTION lab_noop() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN RETURN NEW; END; $$; CREATE TRIGGER lab_trigger AFTER INSERT ON customers FOR EACH ROW EXECUTE FUNCTION lab_noop();DROP TRIGGER lab_trigger ON customers;