How to get binary value for an Integer

Поиск
Список
Период
Сортировка
Искать

How to get binary value for an Integer

От:
"kumar" <sgnerd@yahoo.com.sg>
Дата:
Dear Friends,
 
 I am using postgres 7.3.2. I wanna get the binary value of number 65536. Is there anyway to get that postgres functions.
 
Thanks
kumar
 

Re: How to get binary value for an Integer

От:
Achilleus Mantzios <achill@matrix.gatewaynet.com>
Дата:
O kyrios kumar egrapse stis Apr 27, 2004 :

> Dear Friends,
> 
>  I am using postgres 7.3.2. I wanna get the binary value of number 65536. Is there anyway to get that postgres functions.

SELECT 65536::bit(32);

(assuming you have in mind a 32 bit arch).

> 
> Thanks
> kumar
> 

-- 
-Achilleus


FAQ