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 |
what is a tablespace? : Sql dba
select sal from emp group by sal
What is the basic structure of PL/SQL ?
Hello All, Could any well write a query for the following scenario. Account(table name) No Name Amount 1 ABCD 2000.00 2 DEFG -2000.00 3 GHIJ 3000.50 4 JKLM 4000.00 5 MNOP 6000.00 O/p Should be in this format No Name Credit Debit 1 ABCD 2000.00 0 2 DEFG 0 -2000.00 3 GHIJ 3000.50 4 JKLM 0 -4000.00 5 MNOP 6000.00 o could any one give appropriate query for this Thnks in Advance
explain advantages of innodb over myisam. : Sql dba
What are different sql data types?
What are the query optimization techniques?
What is pl sql in oracle?
What is self-join and what is the requirement of self-join?
What is a native sql query?
What is a CTE (Common Table Expression), and how is it different from a subquery?
What is crud diagram?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)