Re: ALTERING A TABLE

Поиск
Список
Период
Сортировка
От Steve Wampler
Тема Re: ALTERING A TABLE
Дата
Msg-id 3936A4A9.A6518F70@noao.edu
обсуждение исходный текст
Ответ на ALTERING A TABLE  (Peter Landis <ntwebdeveloper@yahoo.com>)
Ответы Re: ALTERING A TABLE
Список pgsql-general
Ron Peterson wrote:
>
>
> You can't use ALTER TABLE to change a field's data description.  You'll
> have to make a new table.  Then use SELECT INTO to move your data.  Then
> DROP TABLE oldtable.  Then ALTER TABLE tablename RENAME TO newname.

Would this really work?  According to the docs, SELECT INTO creates a
new table (which must not yet exist).  So this new table
would have the same field data descriptions as the original, right?

Is the documentation wrong?
--
Steve Wampler-  SOLIS Project, National Solar Observatory
swampler@noao.edu

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

Предыдущее
От: "Simon Hardingham"
Дата:
Сообщение: query optimiser changes 6.5->7.0
Следующее
От: leonbloy@sinectis.com.ar
Дата:
Сообщение: btree index and max()