pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Robert Treat <xzilla@users.sourceforge.net>
Cc: Mukund Pate <patemukund@yahoo.com>
Cc: pgsql-admin@postgresql.org
Cc: mukundpate@rediffmail.com
Subject: Re:
Date: 12 Dec 2002 16:06:39 -0500
Message-ID: <1039727199.3562.72.camel@camel> (raw)
In-Reply-To: <1039722650.3562.67.camel@camel>
References: <20021212063914.50854.qmail@web13114.mail.yahoo.com>
	<1039722650.3562.67.camel@camel>

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





view thread (3+ messages)

Message-ID: <1039727199.3562.72.camel@camel>
Permalink:  ../1039727199.3562.72.camel@camel/
Also on:    postgresql.org/message-id/1039727199.3562.72.camel@camel

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: xzilla@users.sourceforge.net, patemukund@yahoo.com, mukundpate@rediffmail.com
  Subject: Re: 
  In-Reply-To: <1039727199.3562.72.camel@camel>
  References: <20021212063914.50854.qmail@web13114.mail.yahoo.com> <1039722650.3562.67.camel@camel> <1039727199.3562.72.camel@camel>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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