Home>Article>Database> How to delete trigger in mysql

How to delete trigger in mysql

王林
王林 Original
2020-09-30 14:27:49 5495browse

Mysql method to delete a trigger: directly execute the [drop trigger trigger name;] statement to delete the trigger. You can view all triggers by executing the [show triggers;] statement.

How to delete trigger in mysql

Delete trigger

(Recommended tutorial:mysql tutorial)

drop trigger 触发器名;

View all triggers

show triggers;

View the created trigger statement

show create trigger 触发器名;

Note:

When using triggers, you need to pay attention to the same event for the same table Only one trigger can be created.

Delete triggers that are no longer needed promptly. Otherwise, it will continue to trigger, thus affecting the integrity of the data.

Related recommendations:php training

The above is the detailed content of How to delete trigger in mysql. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn