I am using the open source CMS pimcore (http://www.pimcore.org), which runs on a MySQL backend.
It uses fairly complicated views to represent objects and one of them has become broken at some stage when a column in another table being referenced by the view was renamed. Whenever I try to interact with the table via SQL commands I receive the error:
View ‘barriste_website.object_6’ references invalid table(s) or
column(s) or function(s) or definer/invoker of view lack rights to use
them
I would like to simply update the view to reference the renamed columns, but I need to know the current structure of the view before I start poking around – how exactly do I retrieve the structure of the view once it is broken? I’ve tried
SHOW CREATE VIEW object_6
but I receive the same error.
MySQL:
reference: The INFORMATION_SCHEMA VIEWS Table
SQL Server:
or also a query like this:
where you could add a
WHEREto only retrieve one view