public inbox for [email protected]  
help / color / mirror / Atom feed
From: Rich Shepard <[email protected]>
To: [email protected]
Subject: Re: UPDATE with multiple WHERE conditions
Date: Wed, 12 Jun 2024 14:34:09 -0700 (PDT)
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKD7CD=p9KZfB9u+A=p2-Eju1hkUGBnwJMg+xEk82K6wm3mcTA@mail.gmail.com>
References: <[email protected]>
	<CAKD7CD=p9KZfB9u+A=p2-Eju1hkUGBnwJMg+xEk82K6wm3mcTA@mail.gmail.com>

On Thu, 13 Jun 2024, Muhammad Salahuddin Manzoor wrote:

> You can use Temporary table. You could create a temporary table with one
> column containing the condition values and then use it to update your main
> table. This approach can be more flexible and cleaner than writing a
> script with multiple update statements.

Salahuddin,

Thank you. I thought this would be the best approach.

Regards,

Rich






view thread (2+ messages)

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]
  Subject: Re: UPDATE with multiple WHERE conditions
  In-Reply-To: <[email protected]>

* 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