SELECT 1032::numeric(10,2);
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi.
> I have searched in mailing-list archives about converting types, but I
> couldn't
> found a function or clause that convert a numeric type to money type.
> How Can I convert this types?
>
> => selec
PROTECTED]
CC: pgsql-sql@postgresql.org
Asunto: Re: [SQL] Convert numeric to money
On Fri, Jul 22, 2005 at 11:03:40 -0300,
[EMAIL PROTECTED] wrote:
> Hi.
> I have searched in mailing-list archives about converting types, but I
couldn't
> found a function or clause that conv
On Fri, Jul 22, 2005 at 11:03:40 -0300,
[EMAIL PROTECTED] wrote:
> Hi.
> I have searched in mailing-list archives about converting types, but I
> couldn't
> found a function or clause that convert a numeric type to money type.
> How Can I convert this types?
>
> => select '1234'::money;
>mo
Hi.
I have searched in mailing-list archives about converting types, but I couldn't
found a function or clause that convert a numeric type to money type.
How Can I convert this types?
=> select '1234'::money;
money
R$1.234,00
=> select '1234'::numeric::money;
ERROR: cannot cast