pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Yudie <yudie@axiontech.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: cast varchar to numeric/money
Date: Fri, 21 Nov 2003 11:55:23 -0600
Message-ID: <20031121175523.GA4065@wolff.to> (raw)
In-Reply-To: <000f01c3b057$918a0210$8401a8c0@home.axiontech.com>
References: <200311211422.PAA13790@rodos>
	<Pine.GSO.4.58.0311211730170.13158@ra.sai.msu.su>
	<000f01c3b057$918a0210$8401a8c0@home.axiontech.com>

On Fri, Nov 21, 2003 at 11:47:42 -0600,
  Yudie <yudie@axiontech.com> wrote:
> Hi guys,
> 
> I know it's impossible to just cast varchar to any numeric datatype,
> but is there another function/ custom function or any way to force to do
> that convertion.

You can use to_number to go from text to numeric.



view thread (4+ messages)  latest in thread

Message-ID: <20031121175523.GA4065@wolff.to>
Permalink:  ../20031121175523.GA4065@wolff.to/
Also on:    postgresql.org/message-id/20031121175523.GA4065@wolff.to

 · 

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: bruno@wolff.to, yudie@axiontech.com
  Subject: Re: cast varchar to numeric/money
  In-Reply-To: <20031121175523.GA4065@wolff.to>

* 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