摘要: 如果没有加group by 则会出UserCount为0外其它都是null select a.*,count(b.ID) as UserCount from erp_role as a left join erp_user as b on a.ID=b.RoleId where 1=1 and a. 阅读全文
posted @ 2023-04-15 16:12 util6 阅读(610) 评论(0) 推荐(0) 编辑