Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are the different types of triggers?

1130


What is partition by in sql?

1065


What are the 3 modes of parameter?

1152


Define tables and fields in a database

1126


what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba

1123


What is pl/sql table? Why is it used?

1035


What is the difference between inner join and outer join?

991


Why do we need sharding?

986


How can you select unique records from a table?

1072


How do I view tables in sql developer?

935


How do I audit the sql sent to the server?

1002


What is cost in sql execution plan?

977


Can we insert in view in sql?

1054


State few characteristics of pl/sql?

971


How delete all data from table in sql?

1014