pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott David Walter <sdw1@geneseo.edu>
To: pgsql-sql@postgresql.org
Subject: Modify column type
Date: Mon, 19 Aug 2002 12:45:33 -0400 (EDT)
Message-ID: <3329.65.206.3.249.1029775533.squirrel@webmail.geneseo.edu> (raw)

Is there a way to modify the type of an existing column?  All I actually
want to do is extend the length of the type from a VARCHAR(6) to
VARCHAR(100).


         Column         |         Type          |       Modifiers
------------------------+-----------------------+------------------------
 email                  | character varying(6)  | not null


gold_program=> ALTER TABLE student MODIFY email varchar(100);
ERROR:  parser: parse error at or near "modify"






view thread (2+ messages)  latest in thread

Message-ID: <3329.65.206.3.249.1029775533.squirrel@webmail.geneseo.edu>
Permalink:  ../3329.65.206.3.249.1029775533.squirrel@webmail.geneseo.edu/
Also on:    postgresql.org/message-id/3329.65.206.3.249.1029775533.squirrel@webmail.geneseo.edu

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sdw1@geneseo.edu
  Subject: Re: Modify column type
  In-Reply-To: <3329.65.206.3.249.1029775533.squirrel@webmail.geneseo.edu>

* 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