From: Rado Petrik <r.p@szm.sk>
To: PostgreSQL-mailinglist <pgsql-sql@postgresql.org>
Subject: Query problem
Date: 19 Aug 2003 15:02:24 +0200
Message-ID: <1061298143.14403.37.camel@caj> (raw)
Hi, I have table "user".
table "user"
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)
In programing language output =
id(1..3) {
$output = ( bit | $output );
}
How write query ? . Thanks
--
Rado Petrik <r.p@szm.sk>
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: r.p@szm.sk
Subject: Re: Query problem
In-Reply-To: <1061298143.14403.37.camel@caj>
* 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