GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  Programmatic Constructs
Go To First  |  Previous Question  |  Next Question 
 Programmatic Constructs  |  Question 3 of 13    Print  
What is difference between Procedures and Functions ?
A Function returns a value to the caller where as a Procedure does not.



  
Total Answers and Comments: 3 Last Update: August 06, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 17, 2005 10:09:52   #1  
Michael Streeter        

RE: What is difference between Procedures a...
A procedure can return a value (or values) via any parameters declared as IN OUT !
 
Is this answer useful? Yes | No
July 13, 2007 06:18:03   #2  
ttparavindh Member Since: June 2007   Contribution: 6    

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.
 
Is this answer useful? Yes | No
August 06, 2008 01:06:42   #3  
chloroone Member Since: August 2008   Contribution: 1    

RE: What is difference between Procedures and Functions ?
Function always returns a value. Procedure may or may not return a value.

Functions can be called in SQL statements. Procedure can not be called in an SQL statement.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape