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.
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!