Re: Typcasting - Mailing list pgsql-general

From Christoph Dalitz
Subject Re: Typcasting
Date
Msg-id 20030106200149.62da4787.christoph.dalitz@hs-niederrhein.de
Whole thread Raw
In response to Typcasting  ("Chris Boget" <chris@wild.net>)
List pgsql-general
Date: Mon, 6 Jan 2003 10:40:09 -0600
From: "Chris Boget" <chris@wild.net>
Subject: Typcasting
>
> I'm told that I need to cast the value manually.
> I've looked up the CAST function and tried everything that I
> could think of but nothing seems to work.  I can't, for the life
> of me, move the data over.
> I can I cast a field value?  Is there any other way to do what
> I'm trying to do?
>
Cast only works between compatible data types (int to float etc.)
In your case, to_number() should do what you need.

Christoph Dalitz

pgsql-general by date:

Previous
From: Josh Berkus
Date:
Subject: Re: [pgsql-advocacy] www.postgresql.org
Next
From: Stephan Szabo
Date:
Subject: Re: parser error?