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: How to create a second table as sorted on one column of first table?

Re: How to create a second table as sorted on one column of first table?

From: Wladislav Ovchinnikov <wlad_at_cbsd.donetsk.ua>
Date: Wed, 20 May 1998 11:12:12 +0300
Message-ID: <3562905C.CE3A1FA5@cbsd.donetsk.ua>


Hi!

Maxim V. Krapivin wrote:
>
> David Shi wrote :
> >I tried:
> > create table second as select * from first order by key;

Try to export ordered data using SQL*Plus and import using SQL*Loader.

> >but didn't work. Any help is greatly appreciated!
> >David
>
> All right. The data in any table is unsorted. You can use ORDER BY clause
> when fetching data from the table. But when you create one table from
> another this means nothing.

In fact rows ARE ordered. You can read about it at http://www.oramag.com/archives/27/27DBA.html (march/april 1997, "How healthy is your index?").

--

Wladislav Ovchinnikov, DBA
Donetskaya direktsiya Ukrsotsbanka
Donetsk, Ukraine

e-mail: wlad_at_cbsd.donetsk.ua Received on Wed May 20 1998 - 03:12:12 CDT

Original text of this message

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