Re: Inserting a new column in between.

Поиск
Список
Период
Сортировка
От Noel Faux
Тема Re: Inserting a new column in between.
Дата
Msg-id 45E15042.1060909@med.monash.edu.au
обсуждение исходный текст
Ответ на Re: Inserting a new column in between.  (RPK <rohitprakash123@indiatimes.com>)
Список pgsql-general
Hi RPK

My suggestion would be to create a view which presents the columns as
you wish.

eg

CREATE OR REPLACE VIEW tableView AS
 SELECT a, b, c
   FROM table

Then when you add add a new column, just adjust the view as required.

Cheers
Noel

RPK wrote:
> Andreas,
>
> I am talking about inserting a field or changing their order in the
> structure itself. In MS Access and SQL Server we have this facility. Some
> times I need to shift the less important field to the last so that when I
> query using:
>
Postgres does not allow such ordering as stated in the previous replies.



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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Inserting a new column in between.
Следующее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Wikipedia on Postgres (was Re: postgresql vs mysql)