database triggers – how use
-
Read documentation and I’m not understanding how to get a trigger to work.
1. I used your example, substituting one of my tables for dept.CREATE TRIGGER prevent_updates_on_member BEFORE UPDATE ON member
FOR EACH ROW
BEGIN
SIGNAL SQLSTATE ‘45000’ SET MESSAGE_TEXT = ‘Update failed…’;
END;
/2. Saved the trigger.
3. Was able to edit and save a record in member table.
Thank you.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘database triggers – how use’ is closed to new replies.