converting float4 to float8

Поиск
Список
Период
Сортировка
От William D. McCoy
Тема converting float4 to float8
Дата
Msg-id 199806181933.PAA11821@aeolus.geo.umass.edu
обсуждение исходный текст
Список 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

В списке pgsql-sql по дате отправления:

Предыдущее
От: Petter Reinholdtsen
Дата:
Сообщение: 'now - 4 hours ago' ?
Следующее
От: Zsolt Varga
Дата:
Сообщение: Re: [SQL] 'now - 4 hours ago' ?