From: William D. McCoy <wdmccoy@geo.umass.edu>
To: pgsql-sql@postgreSQL.org
Subject: converting float4 to float8
Date: Thu, 18 Jun 1998 15:33:04 -0400 (EDT)
Message-ID: <199806181933.PAA11821@aeolus.geo.umass.edu> (raw)
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: wdmccoy@geo.umass.edu
Subject: Re: converting float4 to float8
In-Reply-To: <199806181933.PAA11821@aeolus.geo.umass.edu>
References: <199806181933.PAA11821@aeolus.geo.umass.edu>
* 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