Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Why does sqlplus "select" produce different order of data?
In article <66556k$n4r$0_at_204.179.92.69>, David Shi <dshi_at_magpage.com>
writes
>(please also forward your message to dshi_at_magpage.com, thanks a lot)
>
>Sorry about posting several questions at the same time, sometimes it's
>so difficult to get help from Oracle technical support.
>
>I noticed when I do a select, each time I got different order of data,
>is this a Unix buffer problem or something else?
It's because relational databases work on sets of data with no intrinsic
ordering. To force an order in your output, use ORDER in your select
statement.
Andy
Andy Hardy. PGP key available on request