Re: Rename of a Table Column

From: "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net>
To: James Kelty <jamesk(at)ashlandagency(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Rename of a Table Column
Date: 2001-10-19 21:21:26
Message-ID: Pine.LNX.4.30.0110191719130.21563-100000@chapelperilous.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, 19 Oct 2001, James Kelty wrote:

> I have a table with a column that needs renameing. I do not know how to do
> this, and if anyone could point me in the right direction, I would really
> appreciate it!

ALTER TABLE <table> RENAME <oldname> TO <newname>;

This is documented in the PostgreSQL reference manual:

http://postgresql.cokernet.com/users-lounge/docs/7.1/reference/

-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
Chicken Little only has to be right once.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Brett Schwarz 2001-10-19 22:25:35 Re: Please help - tks
Previous Message Stephan Szabo 2001-10-19 20:45:24 Re: Rename of a Table Column