Iam升级MySQL后在Interspare中获取错误

时间:2018-07-28 21:03:55

标签: php mysql database email

查询:

SELECT l.subscriberid AS subscriberid 
FROM email_list_subscribers AS l, email_queues AS q WHERE q.recipient = l.subscriberid AND q.queueid = 12 AND queuetype = 'send' AND l.listid IN (1) 
GROUP BY l.emailaddress HAVING COUNT(l.emailaddress) > 1

请拒绝有人可以帮助我

1 个答案:

答案 0 :(得分:0)

如果使用“分组依据”,则必须在select语句中使用分组功能-最小值,最大值等...