我得到一个错误“不兼容的类型: bigint和字符变化。”但我知道通常有一个技巧可以绕过这一点。
发布于 2011-05-10 16:26:24
似乎在PG 9.0中运行良好,但如果不是在你的版本中,你总是可以先转换为文本:
select 1::bigint::text::varchar;发布于 2011-05-10 19:05:44
alter table abc alter column def type varchar using def::varchar;https://stackoverflow.com/questions/5947025
复制相似问题