在 MySQL 中创建物化视图时出现语法错误
在 MySQL 中创建物化视图时出现语法错误:
尝试创建 mview,如下所示:
create materialized view test.dept10
as
select * from test.employees
where deptno=10;
**ERROR 1064 (42000):** You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'materialized view test.dept10
Syntax error while creating materialized view in MySQL:
Tried to create the mview as below:
create materialized view test.dept10
as
select * from test.employees
where deptno=10;
**ERROR 1064 (42000):** You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'materialized view test.dept10
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
开箱即用的 MySQL 不支持物化视图。
Out-of-the box MySQL doesn't do materialized views.
您收到此错误是因为 MySQL 没有物化视图。
阅读这篇文章,我为其发布了第一部分:
在 MySql 页面中,您可以找到有关如何实现的其他示例你的目标。
You get this error because MySQL does not have materialized views.
Read this article for which I post the first part:
In MySql page you can find other examples on how achieve your goal.