Home > Database > Mysql Tutorial > body text

How to delete trigger in mysql

王林
Release: 2020-09-30 14:27:49
Original
5600 people have browsed it

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 触发器名;
Copy after login

View all triggers

show triggers;
Copy after login

View the created trigger statement

show create trigger 触发器名;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template