Can't compare decimal columns???

From: "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net>
To: Postgres Users <pgsql-general(at)postgresql(dot)org>
Subject: Can't compare decimal columns???
Date: 2001-01-14 21:58:46
Message-ID: Pine.LNX.4.30.0101141653070.25523-100000@chapelperilous.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Why isn't there a >= or <= operator defined for floating point datatypes?

As an example:

bmccoy=> select * from account where balance between 20.00 and 99.00;
ERROR: Unable to identify an operator '>=' for types 'numeric' and 'float8'
You will have to retype this query using an explicit cast

Is this standard?

-- Brett
http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
Experience is what you get when you were expecting something else.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Muhammad Rusydi 2001-01-14 23:47:46 update table field value II
Previous Message Peter Eisentraut 2001-01-14 21:46:39 Re: stale portmaster processes