使用shardingsphere+mybatis-plus时执行子查询是报错。
例如:
select * from (
select id from test
) t GROUP BY t.id
这时就会报错
改为一下就可以正常执行了
select * from (
select id from test
) t GROUP BY id
出现以上的原因是shardingsphere的bug,去掉shardingsphere就可以了,如果一定要使用的话就按照下面的那种方式解决
参考:https://github.com/baomidou/mybatis-plus/issues/2585



