Home >Database >Mysql Tutorial >What does mysql trigger mean?

What does mysql trigger mean?

藏色散人
藏色散人Original
2019-04-27 15:46:4610346browse

This article mainly gives you a brief introduction to what mysql triggers are. I hope it will be helpful to friends in need!

What does mysql trigger mean?

The trigger is a special stored procedure. The stored procedure needs to be called manually, while the trigger is automatically initiated by the program, such as deleting a table. before executing the trigger. It can be set to be executed before or after addition and deletion operations.

To put it simply, something happens to a table (insert, delete, update operations), and then the execution of several pre-written SQL statements is automatically triggered;


mysql trigger characteristics and functions

Features: The operation that triggers the event and the SQL statement in the trigger are a transaction operation, which is atomic, either all of them are executed, or none of them are executed. ;

Function: Ensure data integrity and act as a constraint;

Related recommendations: "mysql tutorial"

The above is the detailed content of What does mysql trigger mean?. 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