SELECT LAST_INSERT_ID()
titles,
dizhi,
laiyuan,
xingxiang,
sum(jine) AS zonghe,
real_name,
dianhua,
a.id
FROM
`think_hetong` `a`
INNER JOIN think_zhanghao
w
ON w
.zyzh
= a
.laiyuan
GROUP BY
`titles`
HAVING
zonghe > 1000
AND zonghe < 20000
ORDER BY
`zonghe` DESC,
`dizhi`
LIMIT 0,
有没有大佬会的,在线急
https://www.kancloud.cn/manua...