Re: BIN() - Mailing list pgsql-hackers

From Tino Wildenhain
Subject Re: BIN()
Date
Msg-id 1133334978.5734.37.camel@Andrea.peacock.de
Whole thread Raw
In response to Re: BIN()  (Michael Fuhr <mike@fuhr.org>)
List pgsql-hackers
Am Mittwoch, den 30.11.2005, 00:03 -0700 schrieb Michael Fuhr:
> On Wed, Nov 30, 2005 at 07:42:36AM +0100, Tino Wildenhain wrote:
> > In python, I usually go like this:
> 
> In Ruby (and therefore in PL/Ruby) you could do this:
> 
> 10.to_s(2)
> => "1010"
> 
> 10.to_s(16)
> => "a"

is there a 1000.to_s("abcdefghijk") too? :-)
or 212312321.to_s(range(256)) ?





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Using multi-row technique with COPY
Next
From: Matteo Beccati
Date:
Subject: Re: PL/php in pg_pltemplate