From: | Noel Faux <Noel(dot)Faux(at)med(dot)monash(dot)edu(dot)au> |
---|---|
To: | RPK <rohitprakash123(at)indiatimes(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Inserting a new column in between. |
Date: | 2007-02-25 09:00:50 |
Message-ID: | 45E15042.1060909@med.monash.edu.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-novice |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2007-02-25 09:03:09 | Re: Inserting a new column in between. |
Previous Message | Thomas Kellerer | 2007-02-25 08:52:56 | Re: Inserting a new column in between. |
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Kretschmer | 2007-02-25 09:03:09 | Re: Inserting a new column in between. |
Previous Message | Thomas Kellerer | 2007-02-25 08:52:56 | Re: Inserting a new column in between. |