BIN()

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема BIN()
Дата
Msg-id 438D0B2B.20507@familyhealth.com.au
обсуждение исходный текст
Ответы Re: BIN()  (Andrew Dunstan <andrew@dunslane.net>)
Re: BIN()  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-hackers
Hi guys,

How would I go about implementing MySQL's BIN() function easily in PL/SQL.

mysql> SELECT BIN(12);        -> '1100'

Basically it converts a bigint to a string containing 1's and 0's.

I've tried messing about with bit() types, but those types lack casts to 
text, etc.  And they are left padded with many zeros.

Any ideas?

Chris



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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Please let us know if you will come to the PostgreSQL Anniversary
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: BIN()