X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 900A4D1B54E for ; Fri, 21 Nov 2003 19:13:40 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 66055-10 for ; Fri, 21 Nov 2003 15:13:09 -0400 (AST) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id 2F14CD1CAD8 for ; Fri, 21 Nov 2003 15:13:07 -0400 (AST) Received: from klaster.net (core-1.citynet.pl [80.48.135.69]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id 5D0B72B3F5; Fri, 21 Nov 2003 20:12:49 +0100 (CET) Message-ID: <3FBE63AC.70300@klaster.net> Date: Fri, 21 Nov 2003 20:12:44 +0100 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.5) Gecko/20031007 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: Yudie Cc: pgsql-sql@postgresql.org Subject: Re: cast varchar to numeric/money References: <200311211422.PAA13790@rodos> <000f01c3b057$918a0210$8401a8c0@home.axiontech.com> <20031121175523.GA4065@wolff.to> <005201c3b05d$0cbb1460$8401a8c0@home.axiontech.com> In-Reply-To: <005201c3b05d$0cbb1460$8401a8c0@home.axiontech.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/266 X-Sequence-Number: 16081 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