Re: Change column data type

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Change column data type
Дата
Msg-id 200309050915.18531.dev@archonet.com
обсуждение исходный текст
Ответ на Change column data type  ("Senthil Kumar S" <ssakkaravel@ivesia.com>)
Список pgsql-sql
On Tuesday 02 September 2003 10:50, Senthil Kumar S wrote:
> Dear Friends,
>
> Using Postgres 7.3.4 over the linux server 7.3.
>
> Is it possible to alter/change the data type of a existing table's column,
> with out dropping and recreating a column of same name.
>
> Thanks for ur knowledge sharing.

If you mean changing a varchar to a date or int4 to text, then no. If you want 
to change the size of a varchar field, people seem to have done that in the 
past (check the archives for details).

Otherwise, you'll have to wrap the drop/recreate in a transaction along with 
whatever supporting updates you need.
--  Richard Huxton Archonet Ltd


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

Предыдущее
От: "Yaroslav Ulyanov"
Дата:
Сообщение: Fw: Transactions ID
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Fw: Transactions ID