Re: how to chane the type

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: how to chane the type
Дата
Msg-id 20011206082604.Y25449-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на how to chane the type  ("tinar" <tinarajraj@hotmail.com>)
Ответы Re: how to chane the type  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-sql
On Wed, 5 Dec 2001, tinar wrote:

> i have created a table
> userlist with fields username varchar(10)
> now i want to change it to username varchar(30)
> without dropping or recreating the table.
> how do i do it?

The best way is to recreate the table and rename
them around.  If you *REALLY* don't want to do
that and have a recent backup (yes, I'm serious),
you can muck with pg_attribute and change
atttypmod for the attribute in question
(from 14 to 34).




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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: need some help understanding sloq query
Следующее
От: Joachim Trinkwitz
Дата:
Сообщение: type casting bpchar