DROP TRIGGER
Synopsis
Use the DROP TRIGGER
statement to remove a trigger from the database.
Syntax
drop_trigger ::= DROP TRIGGER [ IF EXISTS ] name ON table_name
[ CASCADE | RESTRICT ]
drop_trigger
Semantics
RESTRICT
is the default and it will throw an error if any objects depend on the trigger.CASCADE
will drop all objects that (transitively) depend on the trigger.
Examples
DROP TRIGGER update_moddatetime ON posts;
See also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .