pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: Yudie <yudie@axiontech.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: cast varchar to numeric/money
Date: Fri, 21 Nov 2003 20:12:44 +0100
Message-ID: <3FBE63AC.70300@klaster.net> (raw)
In-Reply-To: <005201c3b05d$0cbb1460$8401a8c0@home.axiontech.com>
References: <200311211422.PAA13790@rodos>
	<Pine.GSO.4.58.0311211730170.13158@ra.sai.msu.su>
	<000f01c3b057$918a0210$8401a8c0@home.axiontech.com>
	<20031121175523.GA4065@wolff.to>
	<005201c3b05d$0cbb1460$8401a8c0@home.axiontech.com>

Dnia 2003-11-21 19:26, Użytkownik Yudie napisał:
> I don't have to_numeric function in my 7.2.2 postgre.
> then it can resolve it with: 
> 
> cast(substr(varcharcolumn,0) as float4)

Read once again. The function is not "to_numeric", but "to_number".
You can read about this function in manual:
6.7. Data Type Formatting Functions

Regards,
Tomasz Myrta




view thread (4+ messages)

Message-ID: <3FBE63AC.70300@klaster.net>
Permalink:  ../3FBE63AC.70300@klaster.net/
Also on:    postgresql.org/message-id/3FBE63AC.70300@klaster.net

 · 

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: jasiek@klaster.net, yudie@axiontech.com
  Subject: Re: cast varchar to numeric/money
  In-Reply-To: <3FBE63AC.70300@klaster.net>

* 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