From: Graham Vickrage <graham@digitalplanit.com>
To: Postgres SQL <pgsql-sql@postgresql.org>
Subject: Casting
Date: Wed, 13 Mar 2002 17:41:24 -0000
Message-ID: <NDBBJABDILOPAOOMFJHOOEOADEAA.graham@digitalplanit.com> (raw)
Hi All,
Probably a very simple question, but... I am trying to cast a large number
approx
20 chars into text so I can manipulate it. I have tried
SELECT text(big_number) from table;
but this comes back in the format 3.2304234234233e+15 for example, whis is
no good. I essentially need the last four digits of the number (securing
credit card numbers is the idea), which I can only do by manipulating text
and casting it back.
Does anyone have any suggestions?
Many thanks,
Graham.
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: graham@digitalplanit.com
Subject: Re: Casting
In-Reply-To: <NDBBJABDILOPAOOMFJHOOEOADEAA.graham@digitalplanit.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