Re: Is there a way to drop a column?

Поиск
Список
Период
Сортировка
От G. Anthony Reina
Тема Re: Is there a way to drop a column?
Дата
Msg-id 39341549.CAB9A898@nsi.edu
обсуждение исходный текст
Ответ на Re: Is there a way to drop a column?  (Karel Zak <zakkr@zf.jcu.cz>)
Список pgsql-general
Karel Zak wrote:

>
> > I can see a way to "alter table ... add column". Is there a way to
> > "alter table ... drop column"?
>
>  SELECT without_a_column INTO xxx FROM tab;
>  DROP TABLE tab;
>  ALTER TABLE xxx RENAME TO tab;
>

Thanks. That worked.

-Tony



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

Предыдущее
От: Karel Zak
Дата:
Сообщение: Re: Is there a way to drop a column?
Следующее
От: mikeo
Дата:
Сообщение: Re: Re: [SQL] remove line type?