另类的循环内查询
摘要:
某php里面,sql如下select count(*) from a, (select sum(b) as b from c where c.id=a.id ) as d whee a.id= b.aid and a.xxxx = ??? and a.yyyy=?????用来做分页的满足条件记录数量... 阅读全文
posted @ 2014-09-21 21:13 stevenlaz 阅读(133) 评论(0) 推荐(0) 编辑