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 -> Order by must be construct by variable

Order by must be construct by variable

From: Oraclion <inferno74_at_caramail.com>
Date: Sat, 15 Mar 2003 17:20:32 +0100
Message-ID: <b4vjli$mp4$1@news-reader10.wanadoo.fr>


Hi

I don't want use DBMS_SQL (Code translation of my query to DBMS is too hard, 700 lines ... hum)

For example i want to create my query
SELECT * FROM T WHERE ... ORDER by Buff

Is there a way to compute order by in buff
=> CURSOR C1(buff) Is SELECT * FROM T WHERE ... ORDER by Buff;
begin
 buff := field1 ASC, Field2 DESC;
 OPEN C1(buff);
 ....
end;

if no solution i'll go in DBMS_SQL but not cool for this query.

Besrs regards
Oraclion Received on Sat Mar 15 2003 - 10:20:32 CST

Original text of this message

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