我安装了 2 个 MYSQL。在一个本地安装中,NVL 在 View 的 From 子句中使用子查询可以工作,但在另一台服务器(位于 AWS 上)中,这些都不起作用。是否有一些配置需要更改?
最佳答案
来自Changes in MySQL 5.7.7 (2015-04-08, Release Candidate) :
Previously, view definitions were not permitted to contain derived tables (subqueries) in the FROM clause. This restriction has now been lifted.
看来您需要升级 AWS MySQL。
关于mysql - 2 种 MYSQL 安装 - 一种允许在 View 定义中使用子查询,另一种则不允许,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38629677/