Re: Column ordering

Поиск
Список
Период
Сортировка
От brian
Тема Re: Column ordering
Дата
Msg-id 46E57A61.10308@zijn-digital.com
обсуждение исходный текст
Ответ на Column ordering  ("Ashish Karalkar" <ashish.karalkar@info-spectrum.com>)
Список pgsql-general
Ashish Karalkar wrote:
> Hello All,
>
> I am having a table with  5 columns.
> I want to add another column by altering the table at 2nd position
> constraint is that I can not drop and recreate the table as column
> ordering is of importance.
> Is there anyway to do so.

Copy everything into a tmp table, drop the original, recreate it with
the new column in the correct position, and move the data back into it.

brian

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

Предыдущее
От: "Ashish Karalkar"
Дата:
Сообщение: Column ordering
Следующее
От: "Ashish Karalkar"
Дата:
Сообщение: Column Ordering