altering the datatype of a column. - Mailing list pgsql-general

From Prabu Subroto
Subject altering the datatype of a column.
Date
Msg-id 20040804174726.84664.qmail@web41804.mail.yahoo.com
Whole thread Raw
Responses Re: altering the datatype of a column.
List 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 by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Casting timestamp with time zone to varchar automatically
Next
From: Doug McNaught
Date:
Subject: Re: COPY not handling BLOBs