pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Hex Integer Input
Date: Fri, 07 Mar 2003 08:50:56 -0800
Message-ID: <3E68CDF0.4040302@joeconway.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0303071813220.22898-100000@matrix.gatewaynet.com>
References: <Pine.LNX.4.44.0303071813220.22898-100000@matrix.gatewaynet.com>

Achilleus Mantzios wrote:
> Hi, is there a way to enter integer data by their HEX
> representation??
> 

Is this what you want?

regression=# select x'ffff'::int4;
  int4
-------
  65535
(1 row)


Joe




view thread (5+ messages)  latest in thread

Message-ID: <3E68CDF0.4040302@joeconway.com>
Permalink:  ../3E68CDF0.4040302@joeconway.com/
Also on:    postgresql.org/message-id/3E68CDF0.4040302@joeconway.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mail@joeconway.com, achill@matrix.gatewaynet.com
  Subject: Re: Hex Integer Input
  In-Reply-To: <3E68CDF0.4040302@joeconway.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox