Re: Cast char to number

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: Cast char to number
Дата
Msg-id 4B859E54.9090502@iol.ie
обсуждение исходный текст
Ответ на Re: Cast char to number  (Christine Penner <christine@ingenioussoftware.com>)
Ответы Re: Cast char to number  (Bill Moran <wmoran@potentialtech.com>)
Список pgsql-general
On 24/02/2010 21:42, Christine Penner wrote:
> This is what I did.
>
> set all blank columns to '0' because they were causing errors.
> alter table T alter column a type integer using a::integer
>
> That worked perfectly.

Glad you got sorted.

Bill's advice upthread is worth taking on board - if you're in a
position to do so, make sure that numbers are stored as numbers rather
than text, and you'll save yourself all sorts of wacky grief.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Curious plperl behavior
Следующее
От: Bill Moran
Дата:
Сообщение: Re: Cast char to number