Re: [GENERAL] Fwd: [webmaster] Update query issue

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: [GENERAL] Fwd: [webmaster] Update query issue
Дата
Msg-id ce718a7b-7d03-513d-20bf-2b42cc6f33ef@hogranch.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Fwd: [webmaster] Update query issue  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
On 1/17/2017 1:04 PM, Adrian Klaver wrote:
On Jan 17, 2017, at 5:33 AM, kumar s <leelaseshukumar@gmail.com
<mailto:leelaseshukumar@gmail.com>> wrote:

Hi team thanks for giving option....
I am getting update problem ...after update row thst row appended end
of the table ...i need update row without change row position if any
possible please rply .

In Postgres UPDATE is actually DELETE old row, INSERT new row so the row position will change.

Why is the new row being in a new position a problem?

to add to this, relations (tables) are considered unordered sets, if you want a specific order, use ORDER BY in your query.


-- 
john r pierce, recycling bits in santa cruz

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: [GENERAL] Fwd: [webmaster] Update query issue
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: [GENERAL] Queries are taking way longer in 9.6 than 9.5