altering the datatype of a column.

Поиск
Список
Период
Сортировка
От Prabu Subroto
Тема altering the datatype of a column.
Дата
Msg-id 20040804174726.84664.qmail@web41804.mail.yahoo.com
обсуждение исходный текст
Ответы Re: altering the datatype of a column.  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-general
Dear my friends...

I want to change the datatype of a completed table
(has had already content).
But I don't know how.
Here is my try:
"
kv=# alter table customer alter column address set
type char(150);
ERROR:  syntax error at or near "type" at character 47
kv=# alter table customer alter column address set
datatype char(150);
ERROR:  syntax error at or near "datatype" at
character 47
kv=#
"

Please tell me how.

If I alter the datatype of the field, am I going to
loose the data inside the column?

Thank you very much in advance.




__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Casting timestamp with time zone to varchar automatically
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: COPY not handling BLOBs