Re: Typcasting

Поиск
Список
Период
Сортировка
От Christoph Dalitz
Тема Re: Typcasting
Дата
Msg-id 20030106200149.62da4787.christoph.dalitz@hs-niederrhein.de
обсуждение исходный текст
Ответ на Typcasting  ("Chris Boget" <chris@wild.net>)
Список pgsql-general
Date: Mon, 6 Jan 2003 10:40:09 -0600
From: "Chris Boget" <chris@wild.net>
Subject: Typcasting
>
> I'm told that I need to cast the value manually.
> I've looked up the CAST function and tried everything that I
> could think of but nothing seems to work.  I can't, for the life
> of me, move the data over.
> I can I cast a field value?  Is there any other way to do what
> I'm trying to do?
>
Cast only works between compatible data types (int to float etc.)
In your case, to_number() should do what you need.

Christoph Dalitz

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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: [pgsql-advocacy] www.postgresql.org
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: parser error?