Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: re-ordering rows
Gennady
> I need to re-order rows in my table
Rows are not stored in any particular order in Oracle databases. You may always get the same order when you perform a query, but Oracle does not guarantee you any order at all. If you rely on it, you'll sure get into problems soon.
If you need a specific order, you simply need to add a "order by" part in your query. For example:
select table_name, owner
from all_tables
order by table_name descending;
Arjan. Received on Thu Apr 22 1999 - 13:01:22 CDT
![]() |
![]() |