Re: Updating 457 rows in a table

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Updating 457 rows in a table
Дата
Msg-id 1E14886A-BBCB-40E4-8231-1159D12BD261@thebuild.com
обсуждение исходный текст
Ответ на Updating 457 rows in a table  (Rich Shepard <rshepard@appl-ecosys.com>)
Ответы Re: Updating 457 rows in a table
Список pgsql-general

> On May 19, 2024, at 09:54, Rich Shepard <rshepard@appl-ecosys.com> wrote:
>
> Specifically, in the 'people' table I want to change the column 'active'
> from false to true for 457 specific person_id row numbers.

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


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

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