From: Richard Huxton <dev@archonet.com>
To: Rado Petrik <r.p@szm.sk>
To: PostgreSQL-mailinglist <pgsql-sql@postgresql.org>
Subject: Re: Query problem
Date: Tue, 19 Aug 2003 15:21:05 +0100
Message-ID: <200308191521.05085.dev@archonet.com> (raw)
In-Reply-To: <1061298143.14403.37.camel@caj>
References: <1061298143.14403.37.camel@caj>
On Tuesday 19 August 2003 14:02, Rado Petrik wrote:
> id bit(dec) bit(bin)
> -----------------------------
> 1 1 1
> 2 3 11
> 3 12 1100
>
>
> and I need query - >
>
> SELECT "output" FROM user WHERE id = 1 OR id = 2 or id = 3
> output = (1111)
PG supports bit-strings which I guess are designed for exactly this situation.
See the "data types" section of the manual for details.
--
Richard Huxton
Archonet Ltd
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: pgsql-sql@postgresql.org
Cc: dev@archonet.com, r.p@szm.sk
Subject: Re: Query problem
In-Reply-To: <200308191521.05085.dev@archonet.com>
* 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