What is difference between triggers and stored procedures.
And advantages of SP over triggers ?

Answer Posted / sohail

1.Procedure is a subrotine which completly utilises the
concept of stack.
2.Procedure can be called any time when required where as
trigger once created we cannot stop the trigger to fire
when not required.
3.triggers are fired implicitly where as procedure are
called explicitly by procedure name when required.
4.the p_code of procedure is stored in oracle SGA and can
be global to others.

Is This Answer Correct ?    14 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql procedures and functions?

525


Can we use two order by clause in query?

541


Is a view faster than a stored procedure?

542


What is out parameter used for eventhough return statement can also be used in pl/sql?

579


What are properties of the transaction?

552






Are subqueries faster than joins?

568


what is collation? : Sql dba

607


what is row? : Sql dba

702


Is primary key an index?

531


what are the features and advantages of object-oriented programming? : Sql dba

538


Can function return multiple values in sql?

520


What is the execution plan in sql?

552


What is data manipulation language?

691


Explain the difference between sql and mysql.

562


Which language is used in sql?

514