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

From Christophe Pettus
Subject Re: Updating 457 rows in a table
Date
Msg-id 372F0968-BD78-45EB-AE70-015DBF923EBC@thebuild.com
Whole thread Raw
In response to Re: Updating 457 rows in a table  (Rich Shepard <rshepard@appl-ecosys.com>)
Responses Re: Updating 457 rows in a table
List pgsql-general

> On May 19, 2024, at 11:30, Rich Shepard <rshepard@appl-ecosys.com> wrote:
> 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.

Of course, you can probably also shorten the query to:

    UPDATE people SET active=true WHERE ...

Where ... is the predicate you would have used in the SELECT id WHERE ...



pgsql-general by date:

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