From: Jodi Kanter <jkanter@virginia.edu>
To: Gaetano Mendola <mendola@bigfoot.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: changing field length
Date: Wed, 20 Aug 2003 10:16:38 -0400
Message-ID: <3F4382C6.3030101@virginia.edu> (raw)
References: <3F426DB0.1040607@virginia.edu>
<000d01c36685$78b2c090$10d4a8c0@mm.eutelsat.org>
how do I copy from one field to another?
Gaetano Mendola wrote:
>"Jodi Kanter" <jkanter@virginia.edu> wrote:
>
>>I am running 7.3.3. Can I change a field that is varying character(128)
>>to varying character(250)?
>>
>
>nope.
>
>You can
> a) create a new column named tmp of character(250).
> b) copy the content from old column to new column
> c) drop the old column
> d) rename the tmp column to the correct name
>
>
>Regards
>Gaeatano Mendola
>
>PS: Be carefull with the constraint....
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
--
_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu <mailto:jkanter@virginia.edu>
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: jkanter@virginia.edu, mendola@bigfoot.com
Subject: Re: changing field length
In-Reply-To: <3F4382C6.3030101@virginia.edu>
References: <3F426DB0.1040607@virginia.edu> <000d01c36685$78b2c090$10d4a8c0@mm.eutelsat.org> <3F4382C6.3030101@virginia.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