SELECT COUNT(*) as total FROM ( SELECT count(openid) as t FROM user GROUP BY `openid` HAVING t > 1 limit 1000 ) as a如果下面写法会很慢SELECT COUNT(*) as total FROM form_user WHERE id IN(...
SELECT COUNT(*) as total FROM ( SELECT count(openid) as t FROM user GROUP BY `openid` HAVING t > 1 limit 1000 ) as a如果下面写法会很慢SELECT COUNT(*) as total FROM form_user WHERE id IN(...