SELECT f.Id, COUNT(*)JOIN Boos b on f.Id = b.FooId显然,由于GROUP BY,我得到了一个错误错误信息是
当我将组改为GROUP BY f.Id时,一切又恢复正常。我的问题是,为什么Server会抛出该错误,因为它已经确定了来自join的f.Id = b
where cno in (select cno from score group by cno HAVING count(1) > 5 ) and cno like '3%'; 但是,它抛出了一个错误score.Cno' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode