Mail about typecast - Mailing list pgsql-sql

From Vikrant Rathore
Subject Mail about typecast
Date
Msg-id 376520B4.25769FE@chemquick.com
Whole thread Raw
List pgsql-sql
I want to do a following operation on the timespan

select overdue * date_part('epoch',usage)::float4 from indusevar;

where overdue is of type float4 and i want to typecast
date_part('epoch',usage) to float4 since dat_part(text,timespan) returns
a float8 type.
Whenever I try to typecast it gives an error 'function  dtof(float8)
does not exist'. Can anyone help me to solve the problem.
Thanks in advance for your valuable advice.
Waiting for a response.

Regards,
Vicky




pgsql-sql by date:

Previous
From: "Brett W. McCoy"
Date:
Subject: [SQL] DISTINCT not working
Next
From: Michael J Davis
Date:
Subject: RE: [GENERAL] Two variable passed to PL/Function and on is NULL