Re: Updating 457 rows in a table - Mailing list pgsql-general

From Rich Shepard
Subject Re: Updating 457 rows in a table
Date
Msg-id 98639d1a-dddf-38e3-49b3-63632136a0f@appl-ecosys.com
Whole thread Raw
In response to Re: Updating 457 rows in a table  (Christophe Pettus <xof@thebuild.com>)
Responses Re: Updating 457 rows in a table
List pgsql-general
On Sun, 19 May 2024, Christophe Pettus wrote:

> 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 appropriate ids.

Christophe,

That's a good idea; I can use a predicate to identify the rows to update.
That would be shorter than a long, comma-separated list.

Thanks,

Rich



pgsql-general by date:

Previous
From: Muhammad Ikram
Date:
Subject: Re: Updating 457 rows in a table
Next
From: Rich Shepard
Date:
Subject: Re: Updating 457 rows in a table