Re: changing data type

Поиск
Список
Период
Сортировка
От
Тема Re: changing data type
Дата
Msg-id Pine.LNX.4.10.10010191101020.16238-100000@chapelperilous.net
обсуждение исходный текст
Ответ на Re: changing data type  ("D. Duccini" <duccini@backpack.com>)
Ответы Re: changing data type  ("D. Duccini" <duccini@backpack.com>)
Re: changing data type  (Thomas Good <tomg@q8.nrnet.org>)
Список pgsql-novice
On Thu, 19 Oct 2000, D. Duccini wrote:

> can't do it (in 6.x)
>
> the best you can do is
>
> alter table rename column1 to oldcolumn1
>
> alter table add column1 attr type;
>
> then insert into it from the old one
>
> alternately, dump the data out, and reload into your new table

Haven't you people read the online docs?  There's an entire chapter
(chapter 5 in the 'postgres' document), devoted to type conversion, not to
mention a listing of type conversion functions (among others) in chapter 4
of that same document.

I hate answering inquires with just RTFM, but in this case, RTFM! :-)

Brett W. McCoy
                                              http://www.chapelperilous.net
---------------------------------------------------------------------------
She's the kind of girl who climbed the ladder of success wrong by wrong.
        -- Mae West


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

Предыдущее
От: "D. Duccini"
Дата:
Сообщение: Re: changing data type
Следующее
От: "D. Duccini"
Дата:
Сообщение: Re: changing data type