Re: UPDATE with multiple WHERE conditions - Mailing list pgsql-general

From David G. Johnston
Subject Re: UPDATE with multiple WHERE conditions
Date
Msg-id CAKFQuwbzJwRLWVdLBKN4wyvAEmw+RzkRMXaMPrUHx0aZbRAU=w@mail.gmail.com
Whole thread Raw
In response to UPDATE with multiple WHERE conditions  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: UPDATE with multiple WHERE conditions
Re: UPDATE with multiple WHERE conditions
List 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 by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: PG16.1 security breach?
Next
From: "David G. Johnston"
Date:
Subject: Re: Definging columns for INSERT statements