sum up rows of BITs

Поиск
Список
Период
Сортировка
От Thomas T. Thai
Тема sum up rows of BITs
Дата
Msg-id Pine.NEB.4.21.0112040306490.14093-100000@ns01.minnesota.com
обсуждение исходный текст
Список pgsql-general
i would like to do a SELECT that would return a result by AND-ing all the
BIT's. It seems I'd need a function to operate on all the BITs. How do I
do that?

CREATE TABLE "blah" (
  "perm" BIT(31) NOT NULL,
  "name" CHARACTER(10) NOT NULL
);


SELECT some_bit_func_to_and("perm") FROM "blah";

is there another way of doing this w/o having to create a custom function?


В списке pgsql-general по дате отправления:

Предыдущее
От: mgundlach@comosoft.de (Michael Gundlach)
Дата:
Сообщение: Re: Large tables management question
Следующее
От: "Andy Marden"
Дата:
Сообщение: Re: Casting Varchar to Numeric