converting float4 to float8

From: "William D(dot) McCoy" <wdmccoy(at)geo(dot)umass(dot)edu>
To: pgsql-sql(at)postgreSQL(dot)org
Subject: converting float4 to float8
Date: 1998-06-18 19:33:04
Message-ID: 199806181933.PAA11821@aeolus.geo.umass.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'm trying to get a query to return a float8 for a field defined as
float4. When I use

select cast(attname as float8) from table1;

I get the error:

ERROR: function ftod(float4) does not exist

Any ideas how I can do this? I'm trying to use this select in an
"insert into" statement where the target table needs to have the
target field defined as float8.

--
William D. McCoy
Geosciences
University of Massachusetts
Amherst, MA 01003

Browse pgsql-sql by date

  From Date Subject
Next Message Zsolt Varga 1998-06-19 06:10:23 Re: [SQL] 'now - 4 hours ago' ?
Previous Message Petter Reinholdtsen 1998-06-18 17:26:24 'now - 4 hours ago' ?