-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APIJSON支持left join 、union all、子查询等其他复杂sql吗 #98
Comments
JOIN 和 子查询 见 3.2 功能符 目前还不支持 UNION ALL,可以用主副表条件 OR 连接的 INNER JOIN 替代("join": "/ViceTable/refKey@") |
LEFT JOIN中,除了主表,其他表为何要先建立临时表? SQL: |
如果移到外层就不支持副表带条件了。 这个不会影响性能,像 LEFT JOIN ( SELECT * FROM `apijson_demo`.`Comment` ) AS `Comment` 这种简单的子查询,MySQL 5.7+ 会自动优化为 LEFT JOIN `apijson_demo`.`Comment` AS `Comment` 见以上两条 SQL 下的两张 EXPLAIN 效果图,执行过程一样 |
环境信息
问题描述
错误信息
The text was updated successfully, but these errors were encountered: