Re: Column Ordering

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: Ashish Karalkar <ashish(dot)karalkar(at)info-spectrum(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Column Ordering
Date: 2007-09-10 19:37:57
Message-ID: 46E59D15.8050107@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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.

No. However, you could create a view with the column ordering you want,
after adding the new column.

Sean

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Richard Broersma Jr 2007-09-10 20:15:28 Re: Column Ordering
Previous Message Ashish Karalkar 2007-09-10 06:10:37 Column Ordering