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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to "order by" on long data type

Re: How to "order by" on long data type

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: 29 Aug 2001 18:10:00 -0700
Message-ID: <9mk3p802dde@drn.newsguy.com>


In article <9mjgvf$fpj$1_at_panix3.panix.com>, stanb_at_panix.com says...
>
>In <9mj0p6015dc_at_drn.newsguy.com> Thomas Kyte <tkyte_at_us.oracle.com> writes:
>
>>In article <9mirdb$5co$1_at_panix3.panix.com>, stanb_at_panix.com says...
>>>
>>>Unfortunately my version of Oracle (7.3.4)nay be too early to use this
>>>function. Here are the errors I am getting:
>>>
>>>Warning: Function created with compilation errors.
>>>
>>>Errors for FUNCTION GET_LONG:
>>>
>>>LINE/COL ERROR
>>>-------- -----------------------------------------------------------------
>>>8/17 PLS-00103: Encountered the symbol "IMMEDIATE" when expecting one
>>> of the following:
>>> := . ( @ % ;
>>> The symbol ":= was inserted before "IMMEDIATE" to continue.
>>>
>>>11/8 PLS-00103: Encountered the symbol "INTO" when expecting one of
>>>the following: . ( * @ % & = - + ; < / > in mod not rem an exponent (**)
>>> <> or != or ~= >= <= <> and or like between is null is not ||
>>>
>>>
>>>Any sugestiosn as to a how to fix this, so that I can use it on my version?
>
>
>
>>This cannot be done dynamically in versions prior to Oracle8i (815 and up).
>
>>You need to use native dynamic sql and thats not available until then.
>
>>DBMS_SQL won't work in 7.3 -- not "pure" enough.
>
>
>So, am I correct in assuming that I can't do "order by" on a long in 7.3.4,
>at all? Or is thee an alternate aproach?
>

You cannot DYNAMICALLY generate the query in the procedure -- you would need a procedure/long column (and change the substr to be 2000 bytes as the is the max varchar2 length in 7.x)

--
Thomas Kyte (tkyte@us.oracle.com)             http://asktom.oracle.com/ 
Expert one on one Oracle, programming techniques and solutions for Oracle.
http://www.amazon.com/exec/obidos/ASIN/1861004826/  
Opinions are mine and do not necessarily reflect those of Oracle Corp 
Received on Wed Aug 29 2001 - 20:10:00 CDT

Original text of this message

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