Add column and specify the column position in a table

From: Emi Lu <emilu(at)encs(dot)concordia(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Add column and specify the column position in a table
Date: 2006-05-17 21:22:32
Message-ID: 446B9418.3080700@encs.concordia.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello,

I am trying to insert one column to a specific position in a table.

In mysql, I can do:
. create table test(id varchar(3), name varchar(12));
. alter table test add column givename varchar(12) after id;

I am looking for similar things in postgresql to add a new column to the
correct position in a table.

Could someone hint me please.

Thanks alot!
Ying Lu

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Pavan Kumar 2006-05-18 05:45:25 error : could not access status of transaction
Previous Message Tom Lane 2006-05-17 14:12:52 Re: Table constraints and INSERT