From: Ana Roizen <aroizen@sinectis.com.ar>
To: pgsql-sql@hub.org <pgsql-sql@hub.org>
Subject: Is there something wrong with datatype float8 ???
Date: Fri, 07 Jan 2000 17:00:59 +0000
Message-ID: <38761BCA.6A931576@sinectis.com.ar> (raw)
Hello!
Please, can anyone explain me why this query doesn't work?
I'm using Postgres 6.51 on Linux(RedHat).
Thanks a lot!!
Ana Roizen
Bs.As. -Argentina
#--I create my table and insert some values
mydb=> create table sum (x float8,y float8);
CREATE
mydb=> insert into sum (x,y)values(6.5,113.21);
INSERT 40453062 1
#--this works fine!
mydb=> select x+y from sum;
?column?
--------
173.71
(1 row)
#--this doesn't work!!!!
mydb=> select * from sum where x+y=173.71;
x|y
-+-
(0 rows)
mydb=> select * from sum where x+y<173.71;
x| y
----+------
60.5|113.21
(1 row)
What is going wrong???
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: aroizen@sinectis.com.ar, pgsql-sql@hub.org
Subject: Re: Is there something wrong with datatype float8 ???
In-Reply-To: <38761BCA.6A931576@sinectis.com.ar>
References: <38761BCA.6A931576@sinectis.com.ar>
* 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