Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

show create view definition

Tags:

mysql

When I do "Show create view viewName" it does the display the correctly formatted text.

I will like to know if there is any way to format it exactly like "show create table tblName"?

like image 839
shantanuo Avatar asked Feb 26 '10 11:02

shantanuo


1 Answers

No.

MySQL stores the view definition in canonical form, so that's what it gives you when you run show create view:

http://dev.mysql.com/doc/refman/5.1/en/show-create-view.html

like image 83
Ike Walker Avatar answered Nov 15 '22 20:11

Ike Walker