GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Oracle  >  Programmatic Constructs

 Print  |  
Question:  
What is difference between Procedures and Functions ?

Answer:
A Function returns a value to the caller where as a Procedure does not.


July 07, 2007 06:18:03 #2
 ttparavindh   Member Since: June 2007    Total Comments: 5 

RE: What is difference between Procedures a...
 
Procedure A Procedure is a subprogram that performs a specific actionProcedure Does and Does not return the Value.Procedure we can use (In, Out, InOut Parameter)You cannot use the procedure in Select Statement.Execute as a PL/SQL statementNo RETURN clause in the headerCan return none, one, or many values  FunctionA Function is a subprogram that computes a valueInvoke as part of an expressionMust contain a RETURN clause in the headerMust return a single valueMust contain at least one RETURN statementAlways return the Value.Function you cannot use the (In, Out, InOut Parameter)You can use the Function the in Select Statement.
     

 

Back To Question