Does MySQL have information_schema.VIEW_COLUMN_USAGE or an equivalent?
-
30-10-2019 - |
Question
SQL Server has a an information_schema view, 'VIEW_COLUMN_USAGE', which you can use to determine the actual/base tables that the columns in a view reside in.
I'm looking for the equivalent in MySQL - the only view-related information_schema item i can see is VIEWS which has no column info.
Is the only way to find the tables that the columns in a view belongs to to parse the view definition? This seems rather barbaric, and maybe not possible if one doesn't control the SQL being used to define views.
Thanks for your time!
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange