will function return more than one value how
Answers were Sorted based on User's Feedback
Answer / murali
Yes. By using Out Parameter we can return morethan one value.
Is This Answer Correct ? | 20 Yes | 11 No |
Answer / chaitra
A function can return more than one value if the function
is returning a data structure like PL/SQL Table, REF CURSOR
etc.
But returning more than one value by the use of OUT
parameter cannot be done as this fails when the function is
called from an SQL statement ( as in where var = fn(..)).
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / rahul
To get more then two values from a function use a data
structure like record or VARRYs to get more then one value
from function
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / t p tripathy
yes function will return more than one value by using ref
cursor.
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / suresh mallipeddi
using oracle collections like varrays or records function
return more then value
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / prashant tripathi
yes, function can return more then one value.
murali is write but.... it is not a good progrmming way.
Sakthivel is also write that....function must return one
value.
My Answer :
fucntion can return more then one value but in the if-else
condition. it return one value at a time. but it can return
more than one value.
Is This Answer Correct ? | 5 Yes | 3 No |
Answer / sakthivel
NO,we cannot use inout,out parameters in functions. so
function must return one value
Is This Answer Correct ? | 7 Yes | 27 No |
explain commit and rollback in mysql : sql dba
what is the difference between inner and outer join? Explain with example. : Sql dba
How to pronounce postgresql?
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba
How to convert ms-excel file to oracle table?
What is where clause in sql?
difference between cursor and procedure in a package
I need a exceptoin in pl/sql block so that if any errors occur in the block then no exception should errors should raise?
What is a trigger in pl/sql?
define different types of trigger. : Sql dba
How to check if a column is nullable before setting to nullable?
Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints