From: jack <datactrl@tpg.com.au>
To: pgsql-sql@postgresql.org
Subject: numeric problems
Date: Fri, 15 Nov 2002 12:21:59 +1000
Message-ID: <005901c28c4d$c800a0d0$1400a8c0@jac> (raw)
I'm using pgAdmin II version 1.3.82 , psqlODBC 7.2.3 ,
postgreSQl 7.2.1. There is a problem when I do an SQL query
with a field of numeric, for eample NUMERIC (10.2). Following
staement causes an error such as "Unable to indentify an
operator '>' for type 'numeric' and 'double precision'..."
select itemNo, listprice from itmt_info
where listprice > 50.99;
And this one works.
select itemNo, listprice from itmt_info
where listprice > '50.99';
It seems all numeric operators are not available on NUMERIC FIELDS. Is there
anyone has done somethings on this problems? Or should I change NUMERIC type
to FLOAT type? Please advise, thank you in advance.
Jack
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: datactrl@tpg.com.au
Subject: Re: numeric problems
In-Reply-To: <005901c28c4d$c800a0d0$1400a8c0@jac>
* 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