Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> help on "the" operator

help on "the" operator

From: Shishir <shishir_at_agnisoft.com>
Date: Thu, 07 Mar 2002 03:18:22 -0800
Message-ID: <F001.00421B71.20020307031822@fatcity.com>


Hi Gurus!
 if any function which returns the collection type , to show that collection object in tabular format we use "the" operator with dual table which has one row and one column like followings:  select * from the
(select cast( <<function name l(parameters )>> as <<return obeject type>> ) from dual )

my question is can i use any real table in my existing database other than "Dual" in above SQL . Does "the" operator looks for single records in inner SQL ( as returning records from dual does mean that single record and single column ) i means to say when i use real table then it gives the error   "ORA-01427 : single row subquery returns more than one row " i hope the operator looks for only one record . If it is that then can access the result wot i want by using real table because the parameters which r being passed in function are columns from the table wot i want to use ? looking for help.........
thanx in advance

Shishir Kumar Mishra
Agni Software (P) Ltd.,
Bangalore-560055, India
www.agnisoft.com

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Shishir
  INET: shishir_at_agnisoft.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Thu Mar 07 2002 - 05:18:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US