pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mendola Gaetano <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Cc: Rhaoni Chiu Pereira <rhaoni@sistemica.info>
Subject: Re: Explicit Cast
Date: Wed, 20 Aug 2003 17:19:11 +0200
Message-ID: <002201c3672e$68bb0770$32add6c2@mm.eutelsat.org> (raw)
References: <1061382268.3f43687cc3565@sistemica.info>

"Rhaoni Chiu Pereira" <rhaoni@sistemica.info> wrote:
> Hi List,
>
>      As I already said .. I'm porting an Oracle DB to PostgreSQL and I
must
> rewrite most of the functions . So I have a problem to do something like
this:
>
> ... atual_fatura in(''+'',''-'') ...
>
> It gives me the following error:
>
>  Unable to identify an operator '-' for types 'numeric' and 'character
varying'
>  You will have to retype this query using an explicit castenciosamente,
>
> atual_fatura is a varchar field.
>
> I read howto create an explicit cast but I didn't understand what I must
do in
> this case.
>
> Can anybody help me ?

May we have more details on it ? Seems that you want add a numeric with a
varchar.


Regards
Gaetano Mendola





view thread (3+ messages)  latest in thread

Message-ID: <002201c3672e$68bb0770$32add6c2@mm.eutelsat.org>
Permalink:  ../002201c3672e$68bb0770$32add6c2@mm.eutelsat.org/
Also on:    postgresql.org/message-id/002201c3672e$68bb0770$32add6c2@mm.eutelsat.org

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mendola@bigfoot.com, rhaoni@sistemica.info
  Subject: Re: Explicit Cast
  In-Reply-To: <002201c3672e$68bb0770$32add6c2@mm.eutelsat.org>
  References: <1061382268.3f43687cc3565@sistemica.info> <002201c3672e$68bb0770$32add6c2@mm.eutelsat.org>

* 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