Re: Casting Varchar to Numeric

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Casting Varchar to Numeric
Дата
Msg-id 20011127081235.A20315-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Casting Varchar to Numeric  ("Andy Marden" <amarden@usa.net>)
Список pgsql-general
On Tue, 27 Nov 2001, Andy Marden wrote:

> In PostgreSQL, it seems that an error is thrown up if an implicit conversion
> is attempted, and the only explicit conversion seems to be to_number(value,
> format) which doesn't do what's needed generically enough.
>
> I can't believe that this isn't possible - can anyone point me in the right
> direction?

I don't think anyone's written numeric(text) yet, so there is currently
no conversion function for the two types. If you write one and name it
as above, you should be able to get conversions between the two types.


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

Предыдущее
От: Francisco Reyes
Дата:
Сообщение: Re: Timing a query
Следующее
От: David Wheeler
Дата:
Сообщение: Re: DBD::Pg BYTEA Character Escaping