Re: Operator to compare numeric and double precision - Mailing list pgsql-general

From Christoph Dalitz
Subject Re: Operator to compare numeric and double precision
Date
Msg-id 20021028084359.7ed79396.christoph.dalitz@hs-niederrhein.de
Whole thread Raw
In response to Operator to compare numeric and double precision  (Terry Yapt <pgsql@technovell.com>)
List pgsql-general
> Date: Sun, 27 Oct 2002 13:02:38 +0100
> From: Terry Yapt <pgsql@technovell.com>
>
> Are there any operator to compare numeric with double precision ?
>
Try the SQL-Function CAST (its part of the SQL2 standard), eg.

... WHERE doublefield = (CAST numericfield AS DOUBLE) ...

I don't know whether ODBC supports SQL-Functions directly; you will
probably need to use the "PASSTHROUGH" parameter.

Hope this helps,

Christoph Dalitz

pgsql-general by date:

Previous
From: Savita
Date:
Subject: Re: performance issue
Next
From: Stephan Szabo
Date:
Subject: Re: performance issue