I have a problem and search for a solution on Google, but I can not find it. I have a posgre Tabel named products_199 and in this table there is a column called parameter2 type varchar (255). I want to change the data type to text, but somehow I get the following error:
ERROR: parser: parse error at or near "TYPE" at character 50
My command is as follows what I want to execute
ALTER TABLE products_199 ALTER COLUMN parameter2 TYPE text;
I am using PostgreSQL 7.3.4
source
share