Re: cast question

Поиск
Список
Период
Сортировка
От Thomas Beutin
Тема Re: cast question
Дата
Msg-id 20021210220058.B6015@laokoon.bug.net
обсуждение исходный текст
Ответ на cast question  ("Johnson, Shaunn" <SJohnson6@bcbsm.com>)
Список pgsql-general
On Tue, Dec 10, 2002 at 12:40:24PM -0500, Johnson, Shaunn wrote:
> Running PostgreSQL 7.2.1 on RedHat Linux 7.2  ver. 2.4.7-10
this is a little bit outdated, IMHO You should upgrade to at least
to 7.2.3. There were some bugs in earlier 7.2.x versions


> How can I cast character to numeric?  I looked at 'to_number' and
> I don't believe I'm doing it correctly.
to_number('12,454.8-', '99G999D9S')
to_number('345', '9999')::smallint

>
> Any examples would be helpful.
for current release:
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/functions-formatting.html
There is just one example but a really good doc.


greetz,
-tb
--
Thomas Beutin                             tb@laokoon.IN-Berlin.DE
Beam me up, Scotty. There is no intelligent live down in Redmond.

В списке pgsql-general по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: md5 hash question (2)
Следующее
От: Lee Harr
Дата:
Сообщение: Re: PostgreSQL VS Mysql