0
我们已经升级了MYSQL
数据库;MYSQL升级GROUP BY子句;这是不符合sql_mode = only_full_group_by
SELECT l.subscriberid AS subscriberid FROM email_list_subscribers AS l, email_queues AS q
WHERE q.recipient = l.subscriberid AND q.queueid = 2343 AND queuetype = 'send'
AND l.listid IN (31) GROUP BY l.emailaddress HAVING COUNT(l.emailaddress) > 1
,现在我们得到
#1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'emailmarketer.l.subscriberid' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
我们能做些什么?
谢谢,我会尽力的。为什么我的选择适用于v5.6而不是5.7? – mbrc
@mbrc。 。 。这不起作用的原因是由于SQL模式。 –
我可以只为sql 5.7启用sql模式吗? – mbrc