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...

difference between procedures and function?

Answer Posted / mk

Function:-
A function is a predefined action which can consumed so that
retrieve the information from table in various scenario .
Procedure :-
procedure are SQl and PL/SQL code compile and stored in the
database.

Difference
Procedure

It may or may Not return a value
It can return multiple value also
It has both Input & output parameter
Doesn’t uses return statement for returning a value
Output Parameter will be specify using Output Clause
This allow select as well as DML operation
It support Transaction mgmt and error-handling using TRY and
Catch Block
They can call another procedure and function for Execution

Function
Function

It Must return a value
It can return only single value
It has both Input parameter
Uses return statement for returning a value
Output Parameter will be specify using Return Clause
This allow select as statement
Doesn’t support Transaction mgmt and error-handling using
TRY and Catch Block
They can call only another function for Execution



When will use :-

We will use procedure to perform complex business Logic as
well as we use function while performing simple
mathematical calculation.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to turn on or off recycle bin for the instance?

1008


What is the database name in oracle?

968


What is a Garbage Collection? and what is full recursive Garbage collection?

2842


Explain the use of constraints option in exp command.

989


How many types of database triggers exist?

1063


What is open database communication (odbc) in oracle?

947


What is concurrency in oracle?

946


is there a tool to trace queries, like profiler for sql server?

1076


Explain integrity constraints?

1056


How to define an oracle sub procedure?

1054


How translate command is different from replace?

1005


How to change user password in oracle?

973


How to execute the package in oracle?

1036


1) Does oracle have any table which contain all the exceptions and it's code internally?

1695


What is analyze command used for?

1008