RE: Change varchar lenght

From: "Sokel, John" <jsokel(at)mdsi-usa(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: RE: Change varchar lenght
Date: 2000-09-13 20:58:12
Message-ID: CAD59D8EA8B7124894637FC44951789F4970FA@scratchy.int.mdsi-usa.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I don't believe you can change the size of a column once it's created. The
best way is to recreate it. Take a look at SELECT INTO for creating a
backup table easily. Then recreate the original table and INSERT INTO
<original> SELECT * FROM <temp>. Should be fairly painless.

-----Original Message-----
From: Eduardo [mailto:ekotuja(at)brasilnet(dot)net]
Sent: Monday, September 11, 2000 3:17 PM
To: pgsql-novice(at)postgresql(dot)org
Subject: [NOVICE] Change varchar lenght

How can I change a field that is varchar(50) to varchar(500) ??
I did not find in docs. And did not find that option in pgaccess .

Thanks,
Eduardo K

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message davidb 2000-09-13 21:03:09 Re: data entry
Previous Message WOLF, PATRICK 2000-09-13 20:20:01 RE: data entry