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


  • INTERVIEW QUESTIONS DATABASE STORED PROCEDURES DETAILS
    Question :
    What is the difference between stored procedures and stored functions in ORACLE


    Category Stored Procedures Interview Questions
    Rating (0.8) By 232 users
    Added on 7/25/2006
    Views 3434
    Rate it!
    Answers:

    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.



    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.



    Posted by: sam    

    Contact sam Contact sam

    1) Function may return a value whereas procedure may or may not return value.
    2) Function cannot accept parameter but procedure accept parameter.
    3) We can call function in a select statement with clauses but procedure doesn't.
    4) We cannot use INSERT,UPDATE,DELETE in function.
    5) Procedure is used as a statement in a PL/SQL block whereas Function is used as a expression in a PL/SQL
    block.



    Posted by: Prajith Prasannan    

    Contact Prajith Prasannan Contact Prajith Prasannan

    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.
  • 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 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 Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Stored Procedures Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, 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