Re: BIN() - Mailing list pgsql-hackers

From Michael Fuhr
Subject Re: BIN()
Date
Msg-id 20051130030251.GA32201@winnie.fuhr.org
Whole thread Raw
In response to Re: BIN()  (Michael Fuhr <mike@fuhr.org>)
Responses Re: BIN()  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
On Tue, Nov 29, 2005 at 07:57:58PM -0700, Michael Fuhr wrote:
> Any reason not to use sprintf("%b", $_[0])?

Or something like this in SQL or PL/pgSQL:

test=> SELECT ltrim(textin(bit_out(12::bit(64))), '0');ltrim 
-------1100
(1 row)

-- 
Michael Fuhr


pgsql-hackers by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: BIN()
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: BIN()