Re: After updating dataset the record goes to the end of thedataset - Mailing list pgsql-sql

From Nacef LABIDI
Subject Re: After updating dataset the record goes to the end of thedataset
Date
Msg-id f16f7ea00804220600t2ef252e5p9e4f97cffa13b8d0@mail.gmail.com
Whole thread Raw
In response to After updating dataset the record goes to the end of the dataset  ("Nacef LABIDI" <nacef.l@gmail.com>)
Responses Re: After updating dataset the record goes to the end of thedataset
List pgsql-sql
Thank you all for your useful comments.

I have tried to order my records as you said and got it work as I wanted.

Thank you again

On Tue, Apr 22, 2008 at 2:56 PM, Bart Degryse <Bart.Degryse@indicator.be> wrote:
Probably what you mean is that you want the order in which the records were
originally inserted into the database. In that case add a serial to your table and
fetch the records like
SELECT * FROM tbl WHERE 1=1 ORDER BY [myserialfield]
It's not foolproof but will in many cases come close to what you seem to be trying
to achieve by not using 'order by'.


Nacef LABIDI wrote:
> Yes I don't issue any sort statement, and I indeed want the data to be show
> as it is stored in the database.

pgsql-sql by date:

Previous
From: Craig Ringer
Date:
Subject: Re: After updating dataset the record goes to the end of the dataset
Next
From: "Bart Degryse"
Date:
Subject: Re: After updating dataset the record goes to the end of thedataset