MySQL 显示创建视图定义
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2341072/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
show create view definition
提问by shantanuo
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"?
我想知道是否有任何方法可以像“show create table tblName”一样格式化它?
回答by Ike Walker
No.
不。
MySQL stores the view definition in canonical form, so that's what it gives you when you run show create view
:
MySQL 以规范形式存储视图定义,因此当您运行时,它会为您提供show create view
:
http://dev.mysql.com/doc/refman/5.1/en/show-create-view.html
http://dev.mysql.com/doc/refman/5.1/en/show-create-view.html