Which one is used to better performance

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krishhhna
    New Member
    • Aug 2007
    • 13

    Which one is used to better performance

    Hi,
    I have a doubt on procedure and function's,that is nI have one procedure that returns one value and function which also returns only one value. which one is better to use ,either procedure or function??
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Use a function if u must return a value. even though u can return value through procedure using out parameters ,it is not recommended.

    Comment

    • amitpatel66
      Recognized Expert Top Contributor
      • Mar 2007
      • 2358

      #3
      Originally posted by krishhhna
      Hi,
      I have a doubt on procedure and function's,that is nI have one procedure that returns one value and function which also returns only one value. which one is better to use ,either procedure or function??
      Procedure can reutnr more than one value using multiple OUT parameters.
      But making use of function is always advisable if it satisfies the requirement!!

      Comment

      Working...