Re: UPDATE with multiple WHERE conditions

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: UPDATE with multiple WHERE conditions
Дата
Msg-id CAKFQuwbzJwRLWVdLBKN4wyvAEmw+RzkRMXaMPrUHx0aZbRAU=w@mail.gmail.com
обсуждение исходный текст
Ответ на UPDATE with multiple WHERE conditions  (Rich Shepard <rshepard@appl-ecosys.com>)
Ответы Re: UPDATE with multiple WHERE conditions
Re: UPDATE with multiple WHERE conditions
Список pgsql-general
On Wed, Jun 12, 2024 at 2:28 PM Rich Shepard <rshepard@appl-ecosys.com> wrote:
I have a table with 3492 rows. I want to update a boolean column from
'false' to 'true' for 295 rows based on the value of another column.

Is there a way to access a file with those condition values?

I'll often just use a spreadsheet to build the 295 update commands and copy-paste them into psql or whatnot.

David J.

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: PG16.1 security breach?
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Definging columns for INSERT statements