Basics of SQL Part 7
Triggers in SQL A trigger is a special type of stored procedure that runs automatically when an event occurs in the database server. Types of triggers in SQL - Data Manipulation trigger - Data Definition trigger - Logon trigger How to use before insert trigger? Trigger Command: delimiter // create trigger trigger_name() before insert on table_name() for each row if new.marks < 0 then set new.marks =50; end if ...