You can run SHOW CREATE VIEW someview;
to see the view definition. However, MySQL returns the definition without line breaks making it very hard to read.
Doing SHOW CREATE VIEW someview \G
is slightly better as it doesn't result in multiple lines of table borders filling up the screen (--------------
)
Is there a way to print the view definition more readable, with line breaks?