public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Rich Shepard <[email protected]>
Cc: [email protected]
Subject: Re: UPDATE with multiple WHERE conditions
Date: Wed, 12 Jun 2024 15:09:57 -0700
Message-ID: <CAKFQuwbzJwRLWVdLBKN4wyvAEmw+RzkRMXaMPrUHx0aZbRAU=w@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Wed, Jun 12, 2024 at 2:28 PM Rich Shepard <[email protected]>
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.


view thread (3+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: UPDATE with multiple WHERE conditions
  In-Reply-To: <CAKFQuwbzJwRLWVdLBKN4wyvAEmw+RzkRMXaMPrUHx0aZbRAU=w@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox