Re: reorder columns?

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: reorder columns?
Дата
Msg-id Pine.LNX.4.33.0210071142360.23347-100000@css120.ihs.com
обсуждение исходный текст
Ответ на reorder columns?  ("Andy Kriger" <akriger@greaterthanone.com>)
Список pgsql-general
On Mon, 7 Oct 2002, Andy Kriger wrote:

> is there a way to reorder columns in psql?
> or to alter table and add columns after a specified columns?
>
> if not, is my only option to recreate the table with columns in the desired
> order and select into that table?

Pretty much, but you can do it all at once with a statement like:

select field2, field5, field4, field1, field3 into newtable from oldtable




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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: [HACKERS] Hot Backup
Следующее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: Efficient date range search?