Re: Error with DROP column

Поиск
Список
Период
Сортировка
От Tomasz Myrta
Тема Re: Error with DROP column
Дата
Msg-id 3F9D76A6.9090506@klaster.net
обсуждение исходный текст
Ответ на Error with DROP column  (mohan@physics.gmu.edu)
Список pgsql-sql
Dnia 2003-10-27 20:35, Użytkownik mohan@physics.gmu.edu napisał:
> Hi All i am trying to DROP the column but i keep getting this error.
> 
>  ALTER TABLE institution DROP COLUMN name CASCADE;
> ERROR:  ALTER TABLE / DROP COLUMN is not implemented
> 
> please help me in solving this issue.

Looks like Postgresql older than 7.x (7.3?)

You can't drop column this way. In older versions you can do this only by:
create table temp (columns as you wish to have)
insert into temp select * from old_table
drop old_table
alter table temp rename to old_table

Regards,
Tomasz Myrta



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

Предыдущее
От: mohan@physics.gmu.edu
Дата:
Сообщение: Error with DROP column
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: Error with DROP column