Re: [GENERAL] Is it possible to change a columns name

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [GENERAL] Is it possible to change a columns name
Дата
Msg-id 199903101954.OAA20469@candle.pha.pa.us
обсуждение исходный текст
Ответ на Is it possible to change a columns name  ("Wim Ceulemans" <wim.ceulemans@nice.be>)
Список pgsql-general
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi
>
> Is there a simple way to change the name of a column? In addtion, is it
> possible to change a column from 'null' to 'not null' and vice versa?

       alter table classname1 [*]
            rename [column] attname1 to attname2

--
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: "Wim Ceulemans"
Дата:
Сообщение: Is it possible to change a columns name
Следующее
От: "Pavel PaJaSoft Janousek"
Дата:
Сообщение: Re: [GENERAL] Is it possible to change a columns name