Reputation: 1834
I'm sure this is easy to do, but I can't find how to do it! How do I see what a view in MySQL is made of? Basically, how do I see what statements were used in the original CREATE VIEW?
Upvotes: 3
Views: 119
Reputation: 270599
See the documents on SHOW CREATE VIEW
SHOW CREATE VIEW viewname;
And actually, I usually use \G
to suppress tabular output for easier reading:
SHOW CREATE VIEW viewname\G
Upvotes: 5