pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedRename of a Table Column
3+ messages / 3 participants
[nested] [flat]
* Rename of a Table Column
@ 2001-10-19 20:13 James Kelty <jamesk@ashlandagency.com>
0 siblings, 2 replies; 3+ messages in thread
From: James Kelty @ 2001-10-19 20:13 UTC (permalink / raw)
To: pgsql-admin
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!
Thanks.
-James
--
James Kelty
Sr. Unix Systems Administrator
The Ashland Agency
541.488.0801
jamesk@ashlandagency.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Rename of a Table Column
@ 2001-10-19 20:45 Stephan Szabo <sszabo@megazone23.bigpanda.com>
parent: James Kelty <jamesk@ashlandagency.com>
1 sibling, 0 replies; 3+ messages in thread
From: Stephan Szabo @ 2001-10-19 20:45 UTC (permalink / raw)
To: James Kelty <jamesk@ashlandagency.com>; +Cc: pgsql-admin
ALTER TABLE <table> RENAME <old> TO <new>
should do it.
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!
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Rename of a Table Column
@ 2001-10-19 21:21 Brett W. McCoy <bmccoy@chapelperilous.net>
parent: James Kelty <jamesk@ashlandagency.com>
1 sibling, 0 replies; 3+ messages in thread
From: Brett W. McCoy @ 2001-10-19 21:21 UTC (permalink / raw)
To: James Kelty <jamesk@ashlandagency.com>; +Cc: 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.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-10-19 21:21 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-19 20:13 Rename of a Table Column James Kelty <jamesk@ashlandagency.com>
2001-10-19 20:45 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2001-10-19 21:21 ` Brett W. McCoy <bmccoy@chapelperilous.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox