public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: Jamie Thompson <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: UPDATE with AND clarification
Date: Fri, 22 Mar 2024 06:35:22 -0700
Message-ID: <CAKFQuwbrQUPOPhPQbor2=Fhi73bZPm-PYa4aV9oCERZD8SqwLA@mail.gmail.com> (raw)
In-Reply-To: <CABoe=cS68ZKuY09AUE92QuZbZG=UQozBL0m+nWQQ-oLFfDhfFA@mail.gmail.com>
References: <CABoe=cS68ZKuY09AUE92QuZbZG=UQozBL0m+nWQQ-oLFfDhfFA@mail.gmail.com>
On Friday, March 22, 2024, Jamie Thompson <[email protected]> wrote:
>
> Earlier today, I was running some sql for someone which they had submitted
> as:
> > UPDATE tablename SET col1 = val1 AND col2 = val2 WHERE id = X
>
I presume these columns are booleans. So you wrote something like:
Set col1 = ( true and false = true )
Which in this case must coincidentally have produced whatever boolean value
already existed in col1.
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 AND clarification
In-Reply-To: <CAKFQuwbrQUPOPhPQbor2=Fhi73bZPm-PYa4aV9oCERZD8SqwLA@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