CREATE TRIGGER myTrigger AFTER UPDATE ON myTable
WHEN old.field <> 1
BEGIN
UPDATE myTable...
END;
如何添加多个 WHEN 条件?喜欢
CREATE TRIGGER myTrigger AFTER UPDATE ON myTable
WHEN old.field <> 1
BEGIN
UPDATE myTable...
END;
ELSE WHEN old.field = 1
BEGIN
UPDATE myTable...
END;
我必须为它创建两个单独的触发器吗?没有更快的方法吗?