开发者

dbforge mysql studio, how to edit a broken view?

开发者 https://www.devze.com 2023-02-28 00:59 出处:网络
Using dbforge mysql studio, I edit the columns of a table, and wh开发者_StackOverflowoops, this breaks some views, but now when I try to open them to edit them, I get a \"references invalid columns\"

Using dbforge mysql studio, I edit the columns of a table, and wh开发者_StackOverflowoops, this breaks some views, but now when I try to open them to edit them, I get a "references invalid columns" error,

and it refuses to let me edit the sql of the view.

How can I fix this?


After renaming column in table, view becomes invalid. dbForge uses 'SHOW CREATE VIEW' command to get object's definition, and it throws this error.

I can suggest you to alter view in a SQL Document, e.g. -

ALTER VIEW view1 AS SELECT column1, column2, column3_new_name FROM table1;

It should fix view.

Also, you can write requests in our support system.

0

精彩评论

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