Re: [GENERAL] Is it possible to change a columns name - Mailing list pgsql-general

From Bruce Momjian
Subject Re: [GENERAL] Is it possible to change a columns name
Date
Msg-id 199903101954.OAA20469@candle.pha.pa.us
Whole thread Raw
In response to Is it possible to change a columns name  ("Wim Ceulemans" <wim.ceulemans@nice.be>)
List 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 by date:

Previous
From: "Wim Ceulemans"
Date:
Subject: Is it possible to change a columns name
Next
From: "Pavel PaJaSoft Janousek"
Date:
Subject: Re: [GENERAL] Is it possible to change a columns name