Ниже приведен запрос:ошибка изменяющего таблицы типа столбца в PostgreSQL - BIGINT характеру изменяющегося
alter table customer_master alter column pk_customer_id type character varying(20);
Я получил следующее сообщение об ошибке:
ERROR: operator does not exist: character varying > integer HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
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
является первичный ключ для этой таблицы.
это работает для меня. Благодарю. и проблема была не только в запросе. Было ограничение, которое проверяет поле pk_customer_id> 0. поэтому при удалении ограничения он работал для меня. – siva