Re: Castiong Money en PHP

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Fernando Galvez <karnash(at)gmail(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Castiong Money en PHP
Date: 2004-12-17 01:12:09
Message-ID: 20041217011209.GA5215@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On Thu, Dec 16, 2004 at 08:41:18PM -0400, Fernando Galvez wrote:
> Como puedo hacer un casting de un campo que es de tipo MONEY y tengo
> que restarle otro campo que tambien es MONEY pero esta en otra tabla
> bueno el lio es Restarlo por que la consulta trabaja bien.. :)

???

select tabla1.campo1 - tabla2.campo2
from tabla1, tabla2
where ...

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"There is evil in the world. There are dark, awful things. Occasionally, we get
a glimpse of them. But there are dark corners; horrors almost impossible to
imagine... even in our worst nightmares." (Van Helsing, Dracula A.D. 1972)

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2004-12-17 01:55:26 Re: Castiong Money en PHP
Previous Message Fernando Galvez 2004-12-17 00:41:18 Castiong Money en PHP