Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Sort long
Oliver Huppert wrote:
> I have a problem in sort my resultset by a long-field.
> SELECT * FROM ..... ORDER BY <long-field>
> doesn't work.
According to the Oracle 8.1.7 documantation, LONG columns cannot appear
in certain parts of SQL statements:
e.g. WHERE clauses, GROUP BY clauses, ORDER BY clauses...
(Imagine how big an index would grow with LONG entries...) You might created an additional CHAR or VARCHAR2 column in order to store the first relevant bytes of your LONG text. This could provide the basis for an ORDER BY clause.
Best regards, Christoph. Received on Tue Mar 06 2001 - 15:40:07 CST
![]() |
![]() |