Re: CAST

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Enrico Comini <algobit(at)algobit(dot)com>
Cc: ML-Postrges-general <Pgsql-General(at)postgresql(dot)org>
Subject: Re: CAST
Date: 2000-09-28 09:20:26
Message-ID: Pine.LNX.4.21.0009281120050.363-100000@peter
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Enrico Comini writes:

> Hi, how I have to change the next query ?
>
> da_kg=Numeric
> a_kg =Numeric
>
> cusiodb=# SELECT * FROM tavola_pesi WHERE ((da_kg < 3.5) and (a_kg >= 3.5));
> ERROR: Unable to identify an operator '<' for types 'numeric' and 'float8'
> You will have to retype this query using an explicit cast

CAST(3.5 as numeric)

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

  • CAST at 2000-09-28 08:56:30 from Enrico Comini

Browse pgsql-general by date

  From Date Subject
Next Message Martin A. Marques 2000-09-28 10:43:18 Re: full text indexing
Previous Message Enrico Comini 2000-09-28 08:56:30 CAST