Re: BIN()

From: Tino Wildenhain <tino(at)wildenhain(dot)de>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: BIN()
Date: 2005-11-30 07:16:18
Message-ID: 1133334978.5734.37.camel@Andrea.peacock.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)) ?

In response to

  • Re: BIN() at 2005-11-30 07:03:11 from Michael Fuhr

Browse pgsql-hackers by date

  From Date Subject
Next Message Matteo Beccati 2005-11-30 08:40:28 Re: PL/php in pg_pltemplate
Previous Message Tom Lane 2005-11-30 07:10:58 Re: Using multi-row technique with COPY