摘要: SELECT beatid,COUNT(d.id) dongnicount FROM `bed_beat_dongni` d INNER JOIN bed_beat b on b.id = d.beatid GROUP by beatid SELECT b.*,ccc.dongnicount from bed_beat b left join(SELECT beatid,COUNT(d.id) ... 阅读全文
posted @ 2015-06-16 15:08 过客代码站 阅读(179) 评论(0) 推荐(0) 编辑