Rotvic Celaya Rosas escribió:
> Este es el error que me da cuando hago el cambio del tipo de campo
> 
> ERROR:  column "estado" cannot be cast to type "pg_catalog.int2"

Por favor responde a la lista.

Debes hacer algo así como

alter table foo alter column estado type int2 using estado::int2;

-- 
Alvaro Herrera                               http://planet.postgresql.org/
Syntax error: function hell() needs an argument.
Please choose what hell you want to involve.
--
TIP 8: explain analyze es tu amigo

Responder a