SELECT question

Поиск
Список
Период
Сортировка
От Alex
Тема SELECT question
Дата
Msg-id 3FA7857E.9080903@meerkatsoft.com
обсуждение исходный текст
Ответы Re: SELECT question  (Richard Huxton <dev@archonet.com>)
Re: SELECT question  (Brent Wood <b.wood@niwa.co.nz>)
Re: SELECT question  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Список pgsql-general
Hi,

I have a bit string , 7 bits, every bit representing a day of the week.
e.g. 1110011.
Is there and easy way where I can translate/format that string in a query.
I want to give the string back with a '-' for every 0 and the first char
of the Day for every '1'.
example 1100111 = SM--TFS.

thanks for any suggestions
Alex







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

Предыдущее
От: Max Speransky
Дата:
Сообщение: Obtain boolean value of expression in PLPGSQL
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Obtain boolean value of expression in PLPGSQL