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

Does pl sql work in mysql?

980


Can we use view in stored procedure?

900


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

1089


difference between anonymous blocks and sub-programs.

1133


how to load data files into tables with 'mysqlimport'? : Sql dba

1092


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

1033


What are the sql commands?

1179


what is the difference between union and union all? : Sql dba

1020


What is a table?

1015


Is sql port 1433 encrypted?

1023


how can we optimize or increase the speed of a mysql select query? : Sql dba

948


Can unique keys be null?

909


What is left join in sql?

1049


What are pl sql data types?

1009


What is trigger and how to use it in sql?

1021