Can a function take OUT parameters. If not why?

Showing Answers 1 - 11 of 11 Answers

Lalita.p

  • Sep 17th, 2006
 

Function doesn't take Out Parameter.Store Procedure takes Out parameter.

  Was this answer useful?  Yes

Rani

  • Dec 6th, 2006
 

Functions can accept parameters in three modes: IN, OUT, and IN OUT.

Technically, functions created with any of the three parameter modes will compile and runsuccessfully. Again, it is not a good programming practice to build functions with mode other than IN because functions always return a value.

  Was this answer useful?  Yes

BASAVARAJ KOLUR

  • Mar 8th, 2007
 

function can take out parameter and in out parameter in that case it returns values
  to calling program with return value also
    accroding to me its not good programing style to use out and in out parameter for function
 if subprogram returns more than value you go for procedure,its returning one value you go for function

  Was this answer useful?  Yes

A cusor can tabke out parameter. But never use OUT and IN OUT parameters in functions. The main purpose of function is to take zero or more parameters and return a single value.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions