pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Chuming Chen <chen@musc.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: change existing table definition
Date: Tue, 28 Jun 2005 08:31:06 -0600
Message-ID: <20050628143106.GA24109@winnie.fuhr.org> (raw)
In-Reply-To: <42C15044.4030407@musc.edu>
References: <42C15044.4030407@musc.edu>

On Tue, Jun 28, 2005 at 09:27:32AM -0400, Chuming Chen wrote:
> 
> How can I change the column definition of an existing table, ie. from 
> varchar(30) to varchar(50)? Is there any way to add a new column to an 
> existing table?

See ALTER TABLE in the documentation and "How do you change a
column's data type?" in the FAQ:

http://www.postgresql.org/docs/8.0/static/sql-altertable.html
http://www.postgresql.org/docs/faqs.FAQ.html#4.3

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/



view thread (11+ messages)  latest in thread

Message-ID: <20050628143106.GA24109@winnie.fuhr.org>
Permalink:  ../20050628143106.GA24109@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20050628143106.GA24109@winnie.fuhr.org

 · 

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: mike@fuhr.org, chen@musc.edu
  Subject: Re: change existing table definition
  In-Reply-To: <20050628143106.GA24109@winnie.fuhr.org>
  References: <42C15044.4030407@musc.edu> <20050628143106.GA24109@winnie.fuhr.org>

* 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