Re: Updating 457 rows in a table

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Updating 457 rows in a table
Дата
Msg-id 372F0968-BD78-45EB-AE70-015DBF923EBC@thebuild.com
обсуждение исходный текст
Ответ на Re: Updating 457 rows in a table  (Rich Shepard <rshepard@appl-ecosys.com>)
Ответы Re: Updating 457 rows in a table  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general

> On May 19, 2024, at 11:30, Rich Shepard <rshepard@appl-ecosys.com> wrote:
> 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.

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 ...



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

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