Re: Bitmask trickiness - Mailing list pgsql-general

From Stephen Cook
Subject Re: Bitmask trickiness
Date
Msg-id 4C46B7B6.7000202@gmail.com
Whole thread Raw
In response to Bitmask trickiness  (Howard Rogers <hjr@diznix.com>)
List 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.


pgsql-general by date:

Previous
From: Thom Brown
Date:
Subject: Re: INSERT RETURNING and partitioning
Next
From: "pdovera@tiscali.it"
Date:
Subject: Re: INSERT RETURNING and partitioning