UPDATE with multiple WHERE conditions - Mailing list pgsql-general

From Rich Shepard
Subject UPDATE with multiple WHERE conditions
Date
Msg-id c9cf4869-9d6d-7165-3f9f-611446bf961@appl-ecosys.com
Whole thread Raw
Responses Re: UPDATE with multiple WHERE conditions
Re: UPDATE with multiple WHERE conditions
Re: UPDATE with multiple WHERE conditions
List pgsql-general
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? If not, should
I create a temporary table with one column containing those values, or do I
write a psql script with 295 lines, one for each row to be updated?

TIA,

Rich



pgsql-general by date:

Previous
From: Rich Shepard
Date:
Subject: Definging columns for INSERT statements
Next
From: Muhammad Salahuddin Manzoor
Date:
Subject: Re: UPDATE with multiple WHERE conditions