|
发表于 2020-7-14 21:15:01
|
显示全部楼层
SELECT COUNT(*) FROM eqs_users a LEFT JOIN ws_users_info b ON a.id=b.uid WHERE 1=1 HAVING sell_num >=10
这个真的有用?不明白……
SELECT COUNT(*) FROM eqs_users as a,ws_users_info as b,ws_cn_sell as c WHERE a.id=b.uid asd b.sell_num >=10
感觉这个就能实现你的查询要求了
如果分页,就的使用limit了
$page=20;//每页20条信息
$p=$_GET["page"];//获取传递参数
$sql="select * from eqs_users as a,ws_users_info as b,ws_cn_sell as c WHERE a.id=b.uid asd b.sell_num >=10 limit {$page*($p-1)},{$page*$p}";
OK?行了不?唉…… |
|