pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: kumar <sgnerd@yahoo.com.sg>
Cc: pgsql <pgsql-sql@postgresql.org>
Subject: Re: How to get binary value for an Integer
Date: Tue, 27 Apr 2004 14:51:54 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0404271451090.26611-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <01d701c42c52$d057c550$7502a8c0@hdsc.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




view thread (2+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0404271451090.26611-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0404271451090.26611-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0404271451090.26611-100000@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com, sgnerd@yahoo.com.sg
  Subject: Re: How to get binary value for an Integer
  In-Reply-To: <Pine.LNX.4.44.0404271451090.26611-100000@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox