Re: [SQL] Convert numeric to money

2005-07-28 Thread codeWarrior
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

Re: [SQL] Convert numeric to money

2005-07-25 Thread Mauricio Fernandez
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

Re: [SQL] Convert numeric to money

2005-07-22 Thread Bruno Wolff III
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

[SQL] Convert numeric to money

2005-07-22 Thread lucas
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