Re: Bitmask trickiness

From: Stephen Cook <sclists(at)gmail(dot)com>
To: Howard Rogers <hjr(at)diznix(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Bitmask trickiness
Date: 2010-07-21 09:02:46
Message-ID: 4C46B7B6.7000202@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/20/2010 11:59 PM, Howard Rogers wrote:
> But how do I find records which are ONLY yellow and orange, and
> exclude records which have some other colour mixed in, in one simple
> query without a lot of 'not this, not that' additions, and without
> using multiple separate AND tests to nail it down?
> ...
> I suspect the answer is really simple... but I'm having writer's block
> today! All help appreciated.

Just use a regular ol' equals.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message pdovera@tiscali.it 2010-07-21 09:25:05 Re: INSERT RETURNING and partitioning
Previous Message Thom Brown 2010-07-21 08:38:16 Re: INSERT RETURNING and partitioning