Add column and specify the column position in a table

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

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-general by date

  From Date Subject
Next Message Alejandro Michelin Salomon ( Adinet ) 2006-05-17 21:36:55 RES: Add column and specify the column position in a table
Previous Message Tony Caduto 2006-05-17 20:58:21 Re: PG_DIAG_STATEMENT_POSITION Where is it defined?