Skip site navigation (1) Skip section navigation (2)

Re: BIN()

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tino Wildenhain <tino(at)wildenhain(dot)de>
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:03:11
Message-ID: 20051130070311.GA73957@winnie.fuhr.org (view raw or flat)
Thread:
Lists: pgsql-hackers
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"

-- 
Michael Fuhr

In response to

  • Re: BIN() at 2005-11-30 06:42:36 from Tino Wildenhain

Responses

  • Re: BIN() at 2005-11-30 07:16:18 from Tino Wildenhain

pgsql-hackers by date

Next:From: Tom LaneDate: 2005-11-30 07:05:41
Subject: Re: slow IN() clause for many cases
Previous:From: Tino WildenhainDate: 2005-11-30 06:42:36
Subject: Re: BIN()

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group