如何包含我需要監視的列?即而不是一個WHEN
的病情,我想有3個WHEN
條件:觸發多個WHEN條件
CREATE TRIGGER freeradius.insert_into_day_summations
BEFORE INSERT ON freeradius.day_guiding_usage
FOR EACH ROW
WHEN (OLD.col1 IS DISTINCT FROM NEW.col1)
WHEN (OLD.col2 IS DISTINCT FROM NEW.col2)
WHEN (OLD.col3 IS DISTINCT FROM NEW.col3)
EXECUTE procedure update_sessioninfo();
你只是嘗試將它們與'或'結合?該文件說這只是一個布爾條件。應該工作正常。 –