Re: remove $ from money field

Поиск
Список
Период
Сортировка
От Arguile
Тема Re: remove $ from money field
Дата
Msg-id 1060389301.2834.21266.camel@broadswd
обсуждение исходный текст
Ответ на remove $ from money field  (Robby Russell <rrussell@commandprompt.com>)
Список 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 по дате отправления:

Предыдущее
От: culley harrelson
Дата:
Сообщение: Re: 7.3.3 behaving differently on OS X 10.2.6 and FreeBSD 4.8-STABLE
Следующее
От: "Thomas T. Thai"
Дата:
Сообщение: Random via Subselect or Temporary Table