发生在myBatis-plus中,当我们使用两个表关联查询,获取其数据量有多少时,我们需要给派生表起一个表名
select count(*) from (select 字段 from 表1 r inner 表2 m on 关联条件 where r.is_delete = 0) a
错误原因就是因为缺少这个a
发生在myBatis-plus中,当我们使用两个表关联查询,获取其数据量有多少时,我们需要给派生表起一个表名
select count(*) from (select 字段 from 表1 r inner 表2 m on 关联条件 where r.is_delete = 0) a
错误原因就是因为缺少这个a