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

Answer Posted / anil_abbireddy

1. Triggers are Table dependent,But Procedures are Not
2. We can not pass Parameters through Triggers,But in case
of sp we can pass no.of parameters
3. We can not execute triggers explicitly,but ps we can
4. we can not place transaction processing statments in
triggers(commit,collback,save point), but in ps. we can
5. we cannot overload triggers, but we can overload
functions & procedures using packages.

Is This Answer Correct ?    44 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how would concatenate strings in mysql? : Sql dba

572


Does inner join return duplicate rows?

523


What is the most common sql injection tool?

547


Why do we go for stored procedures?

527


Can we write dml inside a function in sql server?

501






What is a ddl command?

543


Mention what are different methods to trace the pl/sql code?

562


how to rename an existing column in a table? : Sql dba

514


How do I tune a sql query?

514


Does mysql support pl sql?

624


What is 19 null in sql?

536


What is the need of merge statement?

557


Explain what is sql*plus?

670


What are sql built in functions?

512


Explain what is a field in a database and record in a database?

611