Re: Add column and specify the column position in a table

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Add column and specify the column position in a table
Дата
Msg-id 20060518140014.GA3122@surnet.cl
обсуждение исходный текст
Ответ на Re: Add column and specify the column position in a table  (Guillaume LELARGE <guillaume.lelarge@gmail.com>)
Ответы Re: Add column and specify the column position in a table  ("Guillaume Lelarge" <guillaume.lelarge@gmail.com>)
Список pgsql-sql
Guillaume LELARGE wrote:
> Emi Lu a écrit :
> > 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.
> 
> There's no similar thing in PostgreSQL. You have to duplicate the table
> to do it.

... which is the same thing MySQL does, only you must do it explicitely.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: "D'Arcy J.M. Cain"
Дата:
Сообщение: Re: Encryption functions
Следующее
От: Andreas Joseph Krogh
Дата:
Сообщение: Constraint question