在postgresql中更改表列类型时出错 - bigint到字符变化

时间:2015-11-23 11:08:09

标签: postgresql alter

以下是查询:

alter table customer_master alter column pk_customer_id type character varying(20);

我收到以下错误消息:

  

错误:运算符不存在:字符变化>整数提示:不   运算符匹配给定的名称和参数类型。你可能需要   添加显式类型转换。

CREATE TABLE customer_master(
  pk_customer_id bigint NOT NULL,
  created_customer_name character varying(200) DEFAULT NULL::character varying,
  fk_deployment_id bigint NOT NULL,
  is_active integer
 )

此处pk_customer_id是此表的主键列

0 个答案:

没有答案
相关问题