Re: remove $ from money field - Mailing list pgsql-general

From Arguile
Subject Re: remove $ from money field
Date
Msg-id 1060389301.2834.21266.camel@broadswd
Whole thread Raw
In response to remove $ from money field  (Robby Russell <rrussell@commandprompt.com>)
List pgsql-general
On Fri, 2003-08-08 at 20:04, Robby Russell wrote:
> Should be a simple question.
>
> When selecting a field that is of type money, how can I remove the $
> when selected?
>
> example: $10.00 would return as 10.00

money as a datatype is deprecated, use numeric(9,2) instead (or whatever
precision you need).

Datatypes:
http://developer.postgresql.org/docs/postgres/datatype-money.html
http://developer.postgresql.org/docs/postgres/datatype.html#DATATYPE-NUMERIC-DECIMAL

Formatting:
http://developer.postgresql.org/docs/postgres/functions-formatting.html



pgsql-general by date:

Previous
From: culley harrelson
Date:
Subject: Re: 7.3.3 behaving differently on OS X 10.2.6 and FreeBSD 4.8-STABLE
Next
From: "Thomas T. Thai"
Date:
Subject: Random via Subselect or Temporary Table