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

Re: hex integer input

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeremy Drake <pgsql(at)jdrake(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: hex integer input
Date: 2007-03-02 07:38:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Jeremy Drake <pgsql(at)jdrake(dot)com> writes:
> On several occasions I have wanted to input integers in hexadecimal rather
> than in decimal in PostgreSQL.  I notice that there is a to_hex function,
> but there is not (AFAIK) a way to provide an integer in hexadecimal.

regression=# select x'abcd'::int;
(1 row)

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Jeremy DrakeDate: 2007-03-02 07:57:28
Subject: Re: hex integer input
Previous:From: Jeremy DrakeDate: 2007-03-02 07:29:18
Subject: hex integer input

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