- World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.

  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!

    Send your Resume to 6000 Companies

    Question :
    what is the difference between stored procedures and stored functions in ORACLE

    Category Stored Procedures Interview Questions
    Rating (0.4) By 1298 users
    Added on 8/12/2006
    Views 3456
    Rate it!

    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.

    Diff between Function and Procedure
    1)Procedure is used in PLSQL block as a statment whereas Function is used as expression in the PL/SQL block.
    2)Function can be used in SQL (with some restriction) but procedure can't.
    3)Procedure cann't returns any value but fuction has to return a value.

    Posted by: Shailesh Rai    

    Contact Shailesh Rai Contact Shailesh Rai

    Procedure & function both are database object that works explicitly
    The main Difference Between Procedure & function is;
    1)Function should return a value But procedure may or maynot return value.

    2)Function doesn't accept parameter where as procedure accept parameter.

    Posted by: pranab kumar mishra    

    Contact pranab kumar mishra Contact pranab kumar mishra

    1. we can call function in select statement with clauses but stored procedure doesn't
    2. both have different signature
    3. we can not use insert,update delete in funtion

    Posted by: Rakesh Gupta    

    Contact Rakesh Gupta Contact Rakesh Gupta

    Function Returns only one value
    but Procedure may return more than value

    Posted by: Rajesh    

    Contact Rajesh Contact Rajesh

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in

  • 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.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What are external procedures ? Why and when they are used?

    View Answer
    What is stored procedure?

    View Answer
    What is the difference between stored procedures and stored functions in ORACLE

    View Answer
    What is the difference between "IS" and "AS" while creating procedure. Ex:- create procedure IS or AS

    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL Stored Procedures Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2015, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0.015625 Seconds