public inbox for [email protected]  
help / color / mirror / Atom feed
From: Jamie Thompson <[email protected]>
To: David G. Johnston <[email protected]>
Cc: [email protected]
Subject: Re: UPDATE with AND clarification
Date: Fri, 22 Mar 2024 19:51:33 +0000
Message-ID: <CABoe=cTes2i9vStJCi3SMecrWHKw9_aFjFRhfa_KtDu-nSqKXQ@mail.gmail.com> (raw)
In-Reply-To: <CAKFQuwbrQUPOPhPQbor2=Fhi73bZPm-PYa4aV9oCERZD8SqwLA@mail.gmail.com>
References: <CABoe=cS68ZKuY09AUE92QuZbZG=UQozBL0m+nWQQ-oLFfDhfFA@mail.gmail.com>
	<CAKFQuwbrQUPOPhPQbor2=Fhi73bZPm-PYa4aV9oCERZD8SqwLA@mail.gmail.com>

Yes they were both boolean columns.

It felt odd at the time, but yes it makes sense.

Thank you.



On Fri, 22 Mar 2024, 13:35 David G. Johnston, <[email protected]>
wrote:

> 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)

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: <CABoe=cTes2i9vStJCi3SMecrWHKw9_aFjFRhfa_KtDu-nSqKXQ@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