What are Triggers?

This lesson provides an introduction to triggers and discusses the benefits and trade-offs of using them.

We'll cover the following

What are Triggers?

Triggers are MySQL programs that are executed automatically in response to an event. They are associated with tables. More specifically, a trigger is invoked in response to events that change the contents of a table like the INSERT, UPDATE, and DELETE statements. Triggers can be invoked before or after these events take place.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.