Re: Updating 457 rows in a table

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Updating 457 rows in a table
Дата
Msg-id 98639d1a-dddf-38e3-49b3-63632136a0f@appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Updating 457 rows in a table  (Christophe Pettus <xof@thebuild.com>)
Ответы Re: Updating 457 rows in a table  (Christophe Pettus <xof@thebuild.com>)
Список pgsql-general
On Sun, 19 May 2024, Christophe Pettus wrote:

> UPDATE people SET active=true WHERE id IN (...);
>
> The ... can either be an explicit list of the ids, or a SELECT id WHERE if
> you have a predicate that selects the appropriate ids.

Christophe,

That's a good idea; I can use a predicate to identify the rows to update.
That would be shorter than a long, comma-separated list.

Thanks,

Rich



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

Предыдущее
От: Muhammad Ikram
Дата:
Сообщение: Re: Updating 457 rows in a table
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: Updating 457 rows in a table