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: Session ID

Re: Session ID

From: John P. Higgins <jh33378_at_deere.com>
Date: Mon, 18 Jan 1999 21:48:34 -0600
Message-ID: <36A40091.7C2711F1@deere.com>


I think you have answered your first question yourself:

There is NO guaranteed physical order of the rows in a table.

Nor is the retrieval order guaranteed to be anything but random unless you use ORDER BY.

Since this is in line with RDBMS theory, I do not expect any change.

PMG wrote:

> Thank you for the answer on the size of Session ID.
> Now I have another question :) - this one relating to inserting into a
> table.
> Is it GUARANTEED that the row order is maintained in the same order that
> the rows
> are inserted into a table after a commit?
>
> I have a table (which I intend to use as a scratch pad). It has no
> primary key, no
> indexes, nothing but a bunch of columns.
>
> I have created a query (something like 'Select distinct product_code
> from
> product_table order by 1 desc').
>
> I would like to insert the results of the query into this table. I get
> an error
> message when I do
> 'insert into scratch_pad (fld1) select distinct product_code from
> product_table
> order by 1 desc'
> because of the order by clause. Fine, I can live with that.
>
> So, using Delphi as the front-end, what I tried to is 1). create the
> query;
> 2).iterate through each row of the query from the first row to the last;
> and 3).
> insert each row into the table.
>
> What I am noticing is that, after commit, the rows are not always in
> the same, (in
> this case descending product code) order as the query results, even
> though I know
> that each row is being processed in the correct order. Sometimes they
> are, and
> sometimes they are not. Any ideas, or suggestions for an alternate
> solution.
>
> TIA
>
> Pete
Received on Mon Jan 18 1999 - 21:48:34 CST

Original text of this message

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