Stored Procedure vs. Database Trigger Flashcards

1
Q

Distinguish between a stored procedure and a database trigger.

A

Stored Procedure: A set of SQL statements that can be executed on demand. It is explicitly invoked by the application or user.
Database Trigger: A set of SQL statements that automatically execute in response to a specific event (e.g., INSERT, UPDATE, DELETE) on a specific table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly