From: Tomasz Myrta <jasiek@klaster.net>
To: mohan@physics.gmu.edu
Cc: pgsql-sql@postgresql.org
Subject: Re: URGENT!!! changing Column size
Date: Mon, 27 Oct 2003 18:46:36 +0100
Message-ID: <3F9D59FC.8010407@klaster.net> (raw)
In-Reply-To: <64184.138.88.163.115.1067274631.squirrel@physics.gmu.edu>
References: <64184.138.88.163.115.1067274631.squirrel@physics.gmu.edu>
Dnia 2003-10-27 18:10, Użytkownik mohan@physics.gmu.edu napisał:
> Hi can we change the size of a column in postgres. I have a table named
> institution and column name is name varchar2(25), i want to change it to
> varchar2(50). Please let me know.
alter table institution add column tmp varchar2(50);
update institution set tmp=name;
alter table institution drop column name;
alter table institution rename tmp to name;
(or something like this)
Regards,
Tomasz Myrta
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: jasiek@klaster.net, mohan@physics.gmu.edu
Subject: Re: URGENT!!! changing Column size
In-Reply-To: <3F9D59FC.8010407@klaster.net>
* 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