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
Why truncate is faster than delete?
what are the differences among rownum, rank and dense_rank? : Sql dba
What is native sql query?
Name the different types of indexes in sql and define them.
What is a unique key?
how to enter numeric values as hex numbers? : Sql dba
How do I save the results of sql query in a file?
How can get second highest salary in sql?
Explain the the delete statements in sql?
Is record in oracle pl sql?
Where are my tempfiles, I don't see them in v$datafile or dba_data_file?
What is difference between db2 and sql?
What are different types of keys?
Why are aggregate functions called so?
What is trigger and how to use it in sql?