| От | Bruno Wolff III |
|---|---|
| Тема | Re: Converting integer to binary |
| Дата | |
| Msg-id | 20040610222731.GA26006@wolff.to обсуждение исходный текст |
| Ответ на | Re: Converting integer to binary (Chris Gamache <cgg007@yahoo.com>) |
| Ответы |
Re: Converting integer to binary
|
| Список | pgsql-sql |
On Thu, Jun 10, 2004 at 13:24:15 -0700, Chris Gamache <cgg007@yahoo.com> wrote: Following up on the cast to bit idea, he could do something like casting to bit(32). I don't think there is an easy way to get this cast to string, so it may not completely solve his problem, depending on what he was going to do with the binary representation. On teh other hand, for some things a bit field might be more useful than a string. area=> select 6::bit(32); bit ----------------------------------00000000000000000000000000000110 (1 row)
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера