Re: After updating dataset the record goes to the end of thedataset

Поиск
Список
Период
Сортировка
От Nacef LABIDI
Тема Re: After updating dataset the record goes to the end of thedataset
Дата
Msg-id f16f7ea00804220600t2ef252e5p9e4f97cffa13b8d0@mail.gmail.com
обсуждение исходный текст
Ответ на After updating dataset the record goes to the end of the dataset  ("Nacef LABIDI" <nacef.l@gmail.com>)
Ответы Re: After updating dataset the record goes to the end of thedataset  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: After updating dataset the record goes to the end of the dataset
Следующее
От: "Bart Degryse"
Дата:
Сообщение: Re: After updating dataset the record goes to the end of thedataset