What is Trigger?

by graciela.bogisich , in category: Technology , 3 months ago

What is Trigger?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by weston_dietrich , 3 months ago

@graciela.bogisich Auto executable sets of SQL statements stored in database are known as Triggers. They are fired when some event CRUD event occurs.When we do some CRUD operations on table the trigger linked with that table fires. Trigger is behaves like a stored procedure but it invoked automatically. It adds a layer of security in database. You can find on this site devhubby.com how to create trigger in MySQL on before insert.