Re: Quick way to alter a column type?

Поиск
Список
Период
Сортировка
От Eric Bangug
Тема Re: Quick way to alter a column type?
Дата
Msg-id 59a954c20807062241w50987925k55af733db027e587@mail.gmail.com
обсуждение исходный текст
Ответ на Quick way to alter a column type?  (Ow Mun Heng <Ow.Mun.Heng@wdc.com>)
Ответы Re: Quick way to alter a column type?  (Lew <conrad@lwsc.ehost-services.com>)
Список pgsql-general
is there any quick hacks to do this quickly? There's around 20-30million
rows of data.

I want to change a column type from varchar(4) to varchar(5) or should I
just use text instead.

ALTER TABLE tablename ALTER COLUMN columnname TYPE VARCHAR(5);

HTH.

-
Eric

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

Предыдущее
От: Ow Mun Heng
Дата:
Сообщение: Quick way to alter a column type?
Следующее
От: Scott Frankel
Дата:
Сообщение: Re: roll back to 8.1 for PyQt driver work-around