Re: type casting varchar to int

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: type casting varchar to int
Дата
Msg-id Pine.BSF.4.10.10009080840270.98168-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на type casting varchar to int  (Hoosain Madhi <MADHIH@vodacom.co.za>)
Список pgsql-general
You can make an intermediate step through text
<colume>::text::int

However, it'll fail if there are any values it cannot
turn into an integer (with an elog) which may not
be what you want.

Stephan Szabo
sszabo@bigpanda.com

On Fri, 8 Sep 2000, Hoosain Madhi wrote:

> Is it possible to type cast from varchar to int? Postgres backend complains
> when I try to do this.


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

Предыдущее
От: Gilles DAROLD
Дата:
Сообщение: Re: Perl Module + postgres 7.0.2
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: SERIAL type in RULES