开发者

Trying to modify column type but get error

开发者 https://www.devze.com 2023-02-21 00:23 出处:网络
I\'m running this command alter table client_details alter column name type character varying(120); but then get the error

I'm running this command

alter table client_details alter column name type character varying(120);

but then get the error

ERROR:  syntax error at or near "view" at character 7
LINE 1: alter view v1 alter column name type character var开发者_C百科ying(120);

I've noticed that a view exists thats causing the problem, how can I alter the type in the vieww, or solve this issue?


Unfortunately PostgreSQL is very strict about this.

You need to drop the view that references that table, then alter the column type and then recreate the view.

0

精彩评论

暂无评论...
验证码 换一张
取 消