Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Ordered INSERT...INTO or UPDATE

Re: Ordered INSERT...INTO or UPDATE

From: Roger Stapley <rstapley_at_uk.oracle.com>
Date: Wed, 01 Dec 1999 16:53:19 +0000
Message-ID: <3845527F.7E7CA25C@uk.oracle.com>


insert into table_b as select number_field from table_a order by number_field;

Starman wrote:
>
> In there a way to insert data from a table o another ordering data?
>
> For example I have a table containing:
>
> Number
> --------
> 40
> 10
> 20
> 30
>
> I want to insert in another table:
>
> Number
> --------
> 10
> 20
> 30
> 40
>
> Another solution is to have another field (ord for example) for ordering
> data. But how can I do an UPDATE setting the order in this field from
> smaller to bigger number?
>
> Help me please!
>
> --
> Nino Stella
> Inteldata Srl
> email: ninomail_at_tin.it
Received on Wed Dec 01 1999 - 10:53:19 CST

Original text of this message

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