Re: Updating 457 rows in a table

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Updating 457 rows in a table
Дата
Msg-id 7e82178c-1249-b592-bfea-5152563ceb4c@appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Updating 457 rows in a table  (Christophe Pettus <xof@thebuild.com>)
Ответы Re: Updating 457 rows in a table
Список pgsql-general
On Sun, 19 May 2024, Christophe Pettus wrote:

> Of course, you can probably also shorten the query to:
>
>     UPDATE people SET active=true WHERE ...
>
> Where ... is the predicate you would have used in the SELECT id WHERE ...

Ah, yes. Hadn't thought of that. The statement would be
     UPDATE people SET active=true WHERE email is not null;

Thanks, Christophe,

Rich



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

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