DROP TRIGGER mytrigger ON t1; CREATE TRIGGER mytrigger BEFORE INSERT OR UPDATE ON t1 FOR EACH ROW EXECUTE PROCEDURE myfunc() ;