使用shardingsphere+mybatis-plus时执行子查询是报错。例如:
select * from ( select id from test )
t GROUP BY t.id
执行会报错
解决方案
出现以上的原因是shardingsphere的bug
- 去掉shardingsphere就可以了
- 去掉别名
select * from ( select id from test ) t GROUP BY id
使用shardingsphere+mybatis-plus时执行子查询是报错。例如:
select * from ( select id from test )
t GROUP BY t.id
执行会报错
解决方案
出现以上的原因是shardingsphere的bug
select * from ( select id from test ) t GROUP BY id