Re: BIN()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BIN()
Дата
Msg-id 12504.1133321732@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BIN()  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: BIN()  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
>> test=> SELECT ltrim(textin(bit_out(12::bit(64))), '0');
>> ltrim 
>> -------
>> 1100
>> (1 row)

> Sweeeeet.  Good old i/o functions.

Who needs the I/O functions?  Just cast int to bit(n).
        regards, tom lane


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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: BIN()
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: BIN()