pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vikrant Rathore <vikrant@chemquick.com>
To: pgsql-sql@postgresql.org
Subject: Mail about typecast
Date: Mon, 14 Jun 1999 23:33:08 +0800
Message-ID: <376520B4.25769FE@chemquick.com> (raw)

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





view thread (6+ messages)  latest in thread

Message-ID: <376520B4.25769FE@chemquick.com>
Permalink:  ../376520B4.25769FE@chemquick.com/
Also on:    postgresql.org/message-id/376520B4.25769FE@chemquick.com

 · 

reply

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: vikrant@chemquick.com
  Subject: Re: Mail about typecast
  In-Reply-To: <376520B4.25769FE@chemquick.com>
  References: <376520B4.25769FE@chemquick.com>

* 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