InterviewSolution
Saved Bookmarks
| 1. |
What are the differences between stored procedure and triggers in SQL? |
||||||||||||
|
Answer» Stored procedures are small pieces of PL/SQL code that PERFORM a specific task. The USER can call stored procedures directly. It's similar to a program in that it can take some input as a PARAMETER, process it, and return values. Trigger, on the other hand, is a stored process that executes automatically when certain events occur (eg update, insert, delete in a database). Triggers are similar to event handlers in that they operate in response to a specified event. Triggers are unable to accept input or return values.
|
|||||||||||||