如何使用 phpMyAdmin 3.2.4 编辑视图?
我需要在 phpMyAdmin 3.2.4 中简单地编辑一个非常复杂的视图,但我不知道如何做到这一点。有什么建议吗? 谢谢!
I need to simply edit a very complicated view in phpMyAdmin 3.2.4 but I cannot figure how to do that. Any suggestions?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
为了扩展 CheeseConQueso 所说的内容,以下是使用 PHPMyAdmin 更新视图的完整步骤:
SHOW CREATE VIEW your_view_name
CREATE VIEW
... 语法)以确保它按您期望的方式运行。CREATE VIEW...
语法)。特别感谢 CheesConQueso 的富有洞察力的回答。
To expand one what CheeseConQueso is saying, here are the entire steps to update a view using PHPMyAdmin:
SHOW CREATE VIEW your_view_name
CREATE VIEW
... syntax) to make sure it runs as you expect it to.CREATE VIEW...
syntax).Special thanks to CheesConQueso for their insightful answer.
在您的数据库表列表中,它应该在类型列中显示视图。
要编辑视图:
希望这有助于
在 PHPMyAdmin 4.x 中更新:,但事实并非如此t 在类型中显示视图,但您仍然可以识别它:
当然它可能只是一个空表,但是当您打开结构时,您就会知道无论是表还是视图。
In your database table list it should show View in Type column.
To edit View:
Hope this help
update: in PHPMyAdmin 4.x, it doesn't show View in Type, but you can still recognize it:
Of course it may be just an empty table, but when you open the structure, you will know whether it's a table or a view.
尝试在 phpmyadmin 的 sql 部分运行
SHOW CREATE VIEW my_view_name
,您将更好地了解视图内的内容try running
SHOW CREATE VIEW my_view_name
in the sql portion of phpmyadmin and you will have a better idea of what is inside the view只需导出您的视图,您将拥有对其进行一些更改所需的所有 SQL。
只需要在 SQL 查询中添加对视图的更改并进行更改:
CREATE for CREATE OR REPLACE
Just export you view and you will have all SQL need to make some change on it.
Just need to add your change in SQL query for the view and change :
CREATE for CREATE OR REPLACE
在已添加书签的 SQL 查询部分中选择您的视图,然后选择删除,然后单击执行按钮。
Select your view in Bookmarked SQL query section then select Delete then click Go button.