From: | Jodi Kanter <jkanter(at)virginia(dot)edu> |
---|---|
To: | Gaetano Mendola <mendola(at)bigfoot(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: changing field length |
Date: | 2003-08-20 14:16:38 |
Message-ID: | 3F4382C6.3030101@virginia.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
how do I copy from one field to another?
Gaetano Mendola wrote:
>"Jodi Kanter" <jkanter(at)virginia(dot)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(at)virginia(dot)edu <mailto:jkanter(at)virginia(dot)edu>
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Wolff III | 2003-08-20 14:26:39 | Re: changing field length |
Previous Message | Somasekhar Bangalore | 2003-08-20 12:28:59 | Need Help on query tuning |