I want to conditionally disabling triggers in DB2 by using global variable only for the current session, for example in a trigger like this
CREATE OR REPLACE TRIGGER update_headcount
AFTER INSERT ON employees
FOR EACH ROW MODE DB2SQL
UPDATE hr_stats
SET headcount = headcount + 1;
How can I do this?