From: | "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com> |
---|---|
To: | John Burski <John(dot)Burski(at)911ep(dot)com>, pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Comparison Operator problem |
Date: | 2001-01-09 21:29:51 |
Message-ID: | 0101091629511U.09559@comptechnews |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
On Tuesday 09 January 2001 16:15, John Burski wrote:
> Table "products_tbl"
> Attribute | Type | Modifier
> -----------+--------------+----------
> prod_id | varchar(10) | not null
> prod_desc | varchar(40) | not null
> cost | numeric(6,2) | not null
> Index: products_tbl_pkey
>
> john=# select * from products_tbl
> john-# where cost > .99;
> ERROR: Unable to identify an operator '>' for types 'numeric' and
> 'float8'
> You will have to retype this query using an explicit cast
> </snip>
Maybe a cast:
cost > .99::numeric(6,2);
--
-------- Robert B. Easter reaster(at)comptechnews(dot)com ---------
-- CompTechNews Message Board http://www.comptechnews.com/ --
-- CompTechServ Tech Services http://www.comptechserv.com/ --
---------- http://www.comptechnews.com/~reaster/ ------------
From | Date | Subject | |
---|---|---|---|
Next Message | Andy Holman | 2001-01-09 23:27:01 | Re: Days betwen dates |
Previous Message | Bilal Tayara | 2001-01-09 21:22:35 | arabic support? |