MySQL – Triggers MCQ

MySQL – Triggers MCQ

1 / 25

1. What is a MySQL trigger?

2 / 25

2. Which type of trigger is executed before the triggering event in MySQL?

3 / 25

3. What type of actions can trigger events respond to in MySQL?

4 / 25

4. How do you create a trigger in MySQL?

5 / 25

5. Which keyword is used to specify the trigger’s name when creating a MySQL trigger?

6 / 25

6. What is the primary purpose of an AFTER trigger in MySQL?

7 / 25

7. In MySQL triggers, what does the FOR EACH ROW clause indicate?

8 / 25

8. Which MySQL statement is used to alter an existing trigger?

9 / 25

9. What is the role of the BEGIN and END keywords in a MySQL trigger?

10 / 25

10. What is a typical use case for a BEFORE trigger in MySQL?

11 / 25

11. How can you view a list of all triggers in a MySQL database?

12 / 25

12. What is the primary purpose of using triggers in a database?

13 / 25

13. What is the primary role of AFTER triggers in MySQL?

14 / 25

14. Which keyword specifies the timing of a MySQL trigger?

15 / 25

15. In a MySQL trigger, what is the significance of the OLD and NEW aliases?

16 / 25

16. What is the primary benefit of using triggers for audit logging in MySQL?

17 / 25

17. How do you disable a trigger temporarily in MySQL without deleting it?

18 / 25

18. What role does the FOR EACH ROW clause play in MySQL triggers?

19 / 25

19. What type of event can trigger actions in MySQL?

20 / 25

20. What is the primary benefit of using the BEFORE keyword in MySQL triggers?

21 / 25

21. Which SQL statement is used to delete a trigger in MySQL?

22 / 25

22. What is a common use case for AFTER triggers in MySQL?

23 / 25

23. Which best practice should be followed when working with triggers in MySQL?

24 / 25

24. How can you enable a disabled trigger in MySQL?

25 / 25

25. What is a primary benefit of using MySQL triggers for data validation?

Your score is

0%