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: Default Query Result Ordering Details

Re: Default Query Result Ordering Details

From: Matthias Hoys <anti_at_spam.com>
Date: Sun, 4 Mar 2007 12:26:59 +0100
Message-ID: <45eaad04$0$2953$ba620e4c@news.skynet.be>

"D. Robbins" <darylrobbins_at_gmail.com> wrote in message news:1172885312.641615.98210_at_z35g2000cwz.googlegroups.com...
>
> Is there any documentation available on the default query result
> ordering in the absence of an ORDER BY clause? I looked through the
> Oracle docs and could not find much. I do not plan to depend on this
> behavior but I am curious on how it works. Thank you.
>

I remember once, after I migrated an application from Oracle 8i to 10g, that several web pages in the application had their result lists ordered differently. Of course, the DBA was blamed, who then started digging into the developer's code, to found out that several queries lacked the "ORDER BY" clause. But, like you, I couldn't find out in the docs if there actually was a sorting difference between Oracle 8i and 10g in the lack of ORDER BY. It could also be related to the fact that the rows were arranged differently during the import.
Tip of the day : always use ORDER BY even when the results look good without it.

Matthias Received on Sun Mar 04 2007 - 05:26:59 CST

Original text of this message

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