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

From Rich Shepard
Subject Re: UPDATE with multiple WHERE conditions
Date
Msg-id 78636a75-1750-234c-5b6d-148f583bc1@appl-ecosys.com
Whole thread Raw
In response to Re: UPDATE with multiple WHERE conditions  (Ron Johnson <ronljohnsonjr@gmail.com>)
List pgsql-general
On Wed, 12 Jun 2024, Ron Johnson wrote:

> A plain UPDATE might work.
>
> UPDATE to_be_updated a
> SET bool_col = true
> FROM other_table b
> WHERE a.pk = b.pk
>  AND b.field3 = mumble;
>
> (You can join them, right?)

Thanks, Ron.

Rich



pgsql-general by date:

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