📅  最后修改于: 2023-12-03 15:03:49.121000             🧑  作者: Mango
PostgreSQL ALTER触发器是一种用于修改数据库中已存在触发器的命令。触发器可以在数据表上安装,以便在数据表中进行INSERT、UPDATE或DELETE操作时触发。
ALTER TRIGGER [IF EXISTS] trigger_name [ON table_name] action;
触发器可以用以下参数进行操作:
ALTER TRIGGER trigger_name RENAME FUNCTION new_function_name();
ALTER TRIGGER trigger_name ON table_name REENABLE;
ALTER TRIGGER trigger_name DISABLE [BEFORE|AFTER] [INSERT|UPDATE|DELETE];
ALTER TRIGGER trigger_name ORDER [BEFORE|AFTER] another_trigger_name;