| From: | "Mendola Gaetano" <mendola(at)bigfoot(dot)com> |
|---|---|
| To: | <pgsql-admin(at)postgresql(dot)org> |
| Cc: | "Rhaoni Chiu Pereira" <rhaoni(at)sistemica(dot)info> |
| Subject: | Re: Explicit Cast |
| Date: | 2003-08-20 15:19:11 |
| Message-ID: | 002201c3672e$68bb0770$32add6c2@mm.eutelsat.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
"Rhaoni Chiu Pereira" <rhaoni(at)sistemica(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | VanderLeeden | 2003-08-20 15:34:26 | DBMirror - Replicating binary objects of type bytea ? |
| Previous Message | Bruno Wolff III | 2003-08-20 15:18:31 | Re: changing field length |