pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedCan WE modify column of a table in postgres 7.3
2+ messages / 2 participants
[nested] [flat]
* Can WE modify column of a table in postgres 7.3
@ 2005-04-01 07:07 sharma;G.S. <ghanshyam@newgen.co.in>
0 siblings, 1 reply; 2+ messages in thread
From: sharma;G.S. @ 2005-04-01 07:07 UTC (permalink / raw)
To: pgsql-admin
I want to
rename and modify the data type of a column in postgres 7.3 can any body help me ...that it is possible to do the above in postgres and if yes pls provide me the syntax
thanx in advance
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Can WE modify column of a table in postgres 7.3
@ 2005-04-02 01:05 Michael Fuhr <mike@fuhr.org>
parent: sharma;G.S. <ghanshyam@newgen.co.in>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Fuhr @ 2005-04-02 01:05 UTC (permalink / raw)
To: sharma;G.S. <ghanshyam@newgen.co.in>; +Cc: pgsql-admin
On Fri, Apr 01, 2005 at 12:37:51PM +0530, sharma;G.S. wrote:
>
> I want to rename and modify the data type of a column in postgres 7.3
> can any body help me ...that it is possible to do the above in postgres
> and if yes pls provide me the syntax
You can rename columns with ALTER TABLE:
http://www.postgresql.org/docs/7.3/interactive/sql-altertable.html
In 8.0 and later you can use ALTER TABLE to change a column's type;
see the FAQ for how to do it in older versions:
http://www.postgresql.org/docs/faqs.FAQ.html#4.3
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-04-02 01:05 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-01 07:07 Can WE modify column of a table in postgres 7.3 sharma;G.S. <ghanshyam@newgen.co.in>
2005-04-02 01:05 ` Michael Fuhr <mike@fuhr.org>
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