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

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: After updating dataset the record goes to the end of the dataset
Дата
Msg-id 20080422101523.GB17162@depesz.com
обсуждение исходный текст
Ответ на Re: 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 the dataset  ("Nacef LABIDI" <nacef.l@gmail.com>)
Список pgsql-sql
On Tue, Apr 22, 2008 at 12:10:41PM +0200, 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. But after updating a row (I don't update
> the ID, just some fields), it keeps its same place on the DB but jumps to
> the end of the dataset and by the way to the end of the DBGrid.

why do you think it stays in the same place in db?

besides - without "order by" you cannot depend on the order of rows.
basically i treat them as in "random" order (which is not true, but
helps me remember to never count on the "default" ordering.

depesz

-- 
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Gurjeet Singh"
Дата:
Сообщение: Re: After updating dataset the record goes to the end of the dataset
Следующее
От: "Nacef LABIDI"
Дата:
Сообщение: Re: After updating dataset the record goes to the end of the dataset