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 are main difference between Stored Procedure and
Functions.

Answer Posted / hemanth

1) functions are used for computations where as procedures
can be used for performing business logic

2) functions MUST return a value, procedures need not be.

3) you can have DML(insert, update, delete) statements in a
function. But, you cannot call such a function in a SQL query..
eg: suppose, if u have a function that is updating a table..
you can't call that function in any sql query.
- select myFunction(field) from sometable;
will throw error.
4)We can call a function from a procedure, but it is not
possible to call a procedure from a function

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between $oracle_base and $oracle_home?

1094


How to invoke the original export import utilities?

1072


How do I know if oracle is installed on windows?

940


What is difference between sid and service name in oracle?

967


How would you go about verifying the network name that the local_listener is currently using?

2053


How to get the Installed Oracle Version Information ?

1131


How to drop an index in oracle?

1078


Explain about the analyze command in oracle?

1057


From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.

1073


What is truncate oracle?

978


Why does for update in oracle 8 cause an ora-01002 error?

1011


defination of bitmap index

2133


Why does Oracle not permit the use of PCTUSED with indexes?

2428


Is oracle a relational database?

924


What do you mean by merge in oracle and how can we merge two tables?

1053