Add column and specify the column position in a table

Поиск
Список
Период
Сортировка
От Emi Lu
Тема Add column and specify the column position in a table
Дата
Msg-id 446B93B1.8040005@encs.concordia.ca
обсуждение исходный текст
Ответы RES: Add column and specify the column position in a table  ("Alejandro Michelin Salomon \( Adinet \)" <alejmsg@adinet.com.uy>)
Re: Add column and specify the column position in a table  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Add column and specify the column position in a table  ("Samer Abukhait" <abukhait@gmail.com>)
Список 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





В списке pgsql-general по дате отправления:

Предыдущее
От: Tony Caduto
Дата:
Сообщение: Re: PG_DIAG_STATEMENT_POSITION Where is it defined?
Следующее
От: "Alejandro Michelin Salomon \( Adinet \)"
Дата:
Сообщение: RES: Add column and specify the column position in a table