RE: Change varchar lenght

Поиск
Список
Период
Сортировка
От Sykora, Dale
Тема RE: Change varchar lenght
Дата
Msg-id 415DD0BB9FAFD011B6E700805FBEB68E057783D4@exchou-ca0801bk.im.hou.compaq.com
обсуждение исходный текст
Ответ на Change varchar lenght  (Eduardo <ekotuja@brasilnet.net>)
Список pgsql-novice
Eduardo,

Since you are changing the table definition, I would do the following.
1. Make a temp table "identical to the original table1 except for the larger
varchar size."
2. Copy table1 to the temp table.
3. Drop table1.
4. Create new table1 identical to temp table.
5. Copy temp table to table1.
6. Drop temp table.

I am a fairly new user, so there may be a better way to do this.

Good Luck,
dale.sykora@compaq.com


-----Original Message-----
From: Eduardo [mailto:ekotuja@brasilnet.net]
Sent: Monday, September 11, 2000 3:17 PM
To: pgsql-novice@postgresql.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

В списке pgsql-novice по дате отправления:

Предыдущее
От: Eduardo
Дата:
Сообщение: Change varchar lenght
Следующее
От: Mark Cannata
Дата:
Сообщение: Don't know where to begin