pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed(no subject)
3+ messages / 2 participants
[nested] [flat]
* (no subject)
@ 2002-12-12 06:39 Mukund Pate <patemukund@yahoo.com>
2002-12-12 19:50 ` Re: Robert Treat <xzilla@users.sourceforge.net>
0 siblings, 1 reply; 3+ messages in thread
From: Mukund Pate @ 2002-12-12 06:39 UTC (permalink / raw)
To: pgsql-admin; +Cc: mukundpate@rediffmail.com
hello,
how to modify the datatype of column in a table?
i have created table with one coulmn datatype is varchar(200) so i would like to change to text datatype
thanks in advance
mukund
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re:
2002-12-12 06:39 (no subject) Mukund Pate <patemukund@yahoo.com>
@ 2002-12-12 19:50 ` Robert Treat <xzilla@users.sourceforge.net>
2002-12-12 21:06 ` Re: Robert Treat <xzilla@users.sourceforge.net>
0 siblings, 1 reply; 3+ messages in thread
From: Robert Treat @ 2002-12-12 19:50 UTC (permalink / raw)
To: Mukund Pate <patemukund@yahoo.com>; +Cc: pgsql-admin; mukundpate@rediffmail.com
On Thu, 2002-12-12 at 01:39, Mukund Pate wrote:
> hello,
>
> how to modify the datatype of column in a table?
>
> i have created table with one coulmn datatype is varchar(200) so i
> would like to change to text datatype
>
You will need to recreate the table.
Robert Treat
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re:
2002-12-12 06:39 (no subject) Mukund Pate <patemukund@yahoo.com>
2002-12-12 19:50 ` Re: Robert Treat <xzilla@users.sourceforge.net>
@ 2002-12-12 21:06 ` Robert Treat <xzilla@users.sourceforge.net>
0 siblings, 0 replies; 3+ messages in thread
From: Robert Treat @ 2002-12-12 21:06 UTC (permalink / raw)
To: Robert Treat <xzilla@users.sourceforge.net>; +Cc: Mukund Pate <patemukund@yahoo.com>; pgsql-admin; mukundpate@rediffmail.com
On Thu, 2002-12-12 at 14:50, Robert Treat wrote:
> On Thu, 2002-12-12 at 01:39, Mukund Pate wrote:
> > hello,
> >
> > how to modify the datatype of column in a table?
> >
> > i have created table with one coulmn datatype is varchar(200) so i
> > would like to change to text datatype
> >
>
> You will need to recreate the table.
>
> Robert Treat
Actually, I should point out that you can do an alter table add col2
text, update table set col2 = col1, update col1 set = NULL, rename col1
coldepricated, rename col2 to col1. If your in 7.3 you can drop
coldepricated too. Sorry for the weak answer before.
Robert Treat
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-12-12 21:06 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-12 06:39 Mukund Pate <patemukund@yahoo.com>
2002-12-12 19:50 ` Re: Robert Treat <xzilla@users.sourceforge.net>
2002-12-12 21:06 ` Re: Robert Treat <xzilla@users.sourceforge.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