Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Inserting a new column in between.



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.





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group