Reg: Changing Column type - Mailing list pgsql-admin

From sandhya
Subject Reg: Changing Column type
Date
Msg-id 03e901c5e9db$06ba00d0$cd00000a@amiindiahjwbgh
Whole thread Raw
Responses Re: Reg: Changing Column type
Re: Reg: Changing Column type
List pgsql-admin
Hi,
 
When i am tring to change the column type from character/Varchar to "int" i am getting error like,
 
ERROR:  column "fname" cannot be cast to type "int4"
 
I can able to change the column type to "int " if the old datatype is double etc.
Even a "int" datatype also i can able to conver to "char"
and why not viceversa....Please tell me where the problem is.
Suggest me what to do to convert a "char" datatype to "int".
 
Thanks&Regards,
Sandhya
 

 
 

pgsql-admin by date:

Previous
From: "Jonah H. Harris"
Date:
Subject: Re: [HACKERS] Major Problem, need help! Can't run our
Next
From: Andrew Sullivan
Date:
Subject: Re: ERROR: could not read block