我用如下语句进行分页,每页10条,select * from pw_threads where ifcheck=1 and fid='"+ Session["friend"] + "' order by topped desc, lastpost desc limit "+be+",10但是还必须要获得 总记录数 以取得总页数
而用select Count(fid) from pw_threads where ifcheck=1 and fid='"+ Session["friend"] + "' and author='"+ Session["fusername"] +"'
网页刷新会非常慢
用explain 获得 DataView[0]["rows"]的数量也不准确请问 各位用什么 更高效率方法 获得 记录总数量
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货