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

Home -> Community -> Mailing Lists -> Oracle-L -> Another query problem in 9i

Another query problem in 9i

From: Guang Mei <gmei_at_incyte.com>
Date: Wed, 22 Oct 2003 14:09:25 -0800
Message-ID: <F001.005D3FF2.20031022140925@fatcity.com>


Hi:

I have another problem that I have been trying to solve. I have this query that works perfectly in 8i, but does not work in 9i. The query is

The error I got from 9i is:

ERROR at line 5:
ORA-01722: invalid number

However, The following sqls work both in 8i and 9i:

select distinct to_number(Curationdetails.text) from Curationdetails, termlist
where context = 3001817 and

        CurationDetails.Text=to_char(termlist.TermID)
and     Curationdetails.text='3357971';


select  distinct arc.TermID, arc.ParentTermID
               from    arc
               where   arc.TermID in
                       (select  distinct to_number(Curationdetails.text)
                        from    Curationdetails, termlist
                        where   context = 3001817 and
                                CurationDetails.Text=to_char(termlist.TermID)
                        and     Curationdetails.text='3357971'
                       );


select  distinct arc.TermID, arc.ParentTermID
               from    arc
               connect by prior arc.ParentTermID=arc.TermID
               start   with arc.TermID in (to_number('3357971'));

So I guess I am a bit confused. Does anyone know why the orginal query failed in 9i?

TIA. Guang

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Guang Mei
  INET: gmei_at_incyte.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Wed Oct 22 2003 - 17:09:25 CDT

Original text of this message

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