Question:
What is the difference between stored procedures and stored functions in ORACLE
Answer:
Both(functions and Procedures) are the Oracle Objects that work explicitly towards database objects like Tables,Views.
The diff. b/t Stored Procedures and Functions
1) The procedures doesn't return values. whereas the function returns value.
2) The procedures accept more than one argument whereas the functions not. Source: CoolInterview.com
both the procedure and functon accept more than one variable.Function do not have an out variable where as procedures return variable to the calling environment using out variables not the return cluase where as function return value using return clause.and it must return a value but procedure may or maynot. Source: CoolInterview.com
Answered by: sam | Date: 3/9/2009
| Contact sam
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|