Can't compare decimal columns??? - Mailing list pgsql-general

From Brett W. McCoy
Subject Can't compare decimal columns???
Date
Msg-id Pine.LNX.4.30.0101141653070.25523-100000@chapelperilous.net
Whole thread Raw
Responses Re: Can't compare decimal columns???
List 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.


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: stale portmaster processes
Next
From: "Muhammad Rusydi"
Date:
Subject: update table field value II