pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A. Van Hook <hook@kcp.com>
To: pgsql-sql@postgresql.org
Subject: casting question
Date: Sat, 02 Feb 2002 09:20:38 -0600
Message-ID: <3C5C03C6.CAE5CAB3@kcp.com> (raw)



I have a column  (quantityonhand     | character(15) | default '' )
that I would like to use to perform simple math.
I can't seem to get the syntax for casting and  have tried various
combinations of "select  to_number(quantityonhand::text, '99G999D9S')".
Can not get get past ERROR:  Bad numeric input format ' '.


    Any help would be greatly  appreciated....


tanks




view thread (3+ messages)  latest in thread

Message-ID: <3C5C03C6.CAE5CAB3@kcp.com>
Permalink:  ../3C5C03C6.CAE5CAB3@kcp.com/
Also on:    postgresql.org/message-id/3C5C03C6.CAE5CAB3@kcp.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: hook@kcp.com
  Subject: Re: casting question
  In-Reply-To: <3C5C03C6.CAE5CAB3@kcp.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