Re: change varchar(10) to varchar()

From: <operationsengineer1(at)yahoo(dot)com>
To: Jaime Casanova <systemguards(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: change varchar(10) to varchar()
Date: 2005-08-05 04:58:56
Message-ID: 20050805045856.58208.qmail@web33306.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

--- Jaime Casanova <systemguards(at)gmail(dot)com> wrote:

> On 8/4/05, operationsengineer1(at)yahoo(dot)com
> <operationsengineer1(at)yahoo(dot)com> wrote:
> > is there a sql command to change a field data type
> > from varchar(10) to varchar()?
> >
> > i tried to do this in pgadmin3, but when i deleted
> the
> > length (maximum characters) attribute, the OK
> button
> > stayed grayed out and inactive. as an aside, the
> OK
> > button becomes active when the length attribute is
> > changed... but turns gray when it is deleted
> > altogether.
> >
> > i don't want to put any arbitrary constraints on
> my
> > s/n field - especially since there is no
> performance
> > benefit in doing so per the manual.
> >
> > tia...
> >
> > ps - i can delete and recreate the table with no
> > problems - but i would prefer to learn something
> for
> > future reference, if possible.
> >
>
> use text datatype, instead

worked like a charm. are there any advantages to
using text of varchar() or vice versa? are they equal
and just personal preference?


____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Walker, Jed S 2005-08-05 18:40:29 Monitoring postmaster.log
Previous Message Gnanavel S 2005-08-05 04:04:01 Re: change varchar(10) to varchar()