From: Trever Adams <highlander@teleteam.net>
To: pgsql-sql@postgresql.org
Subject: Binary anding
Date: Mon, 28 Dec 1998 18:07:44 -0600
Message-ID: <36881D50.A16A77A9@teleteam.net> (raw)
Is it possible to do anding for a where in a select statement? Here is
what I want to do in a hybrid C/SQL statement.
select * from somesuchtable where mask&someothermask;
I just want at least one bit set after that anding of the masks. If it
is, I want that item. (Note I will actually be using negating wheres as
well so that not all that fit the above will be retrieved.)
Is this possible?
Please let me know asap.
Trever
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: highlander@teleteam.net
Subject: Re: Binary anding
In-Reply-To: <36881D50.A16A77A9@teleteam.net>
References: <36881D50.A16A77A9@teleteam.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox