what is the difference between trigger and storedprocedures
Answer Posted / sunny kumar rana
1) A stored procedure can accept parameters while a trigger
cannot.
2) A trigger can’t return any value while stored procedures
depand on condition.
3) A trigger is executed automatically on some event while
a stored procedure needs to be explicitly called.
4) Triggers are used for insertions, update and deletions
on tables while stored procedures are often using
independently in the database.
5) A trigger cannot be written in a stored procedure.
However, the reverse is not possible.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does sql stand for?
what are the different functions in sorting an array? : Sql dba
Is pl sql still used?
Does sqlite need a server?
What is sql dialect?
What are database links used for?
what is denormalization. : Sql dba
How to change the order of columns in Oracle SQL Plus ?
What is plpgsql language?
What are the usages of sql?
What is the difference between the implicit and explicit cursors?
What does (*) mean in sql?
Enlist the data types that can be used in pl/sql?
Can we use delete in merge statement?
what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba