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(dot)p(at)szm(dot)sk>