select s_id from score where score< 60 group by s_id having count(*) >= 2 这个我在本地测试没问题啊,另外最好别用COUNT(*),这里可以用COUNT(课程号),可以私信我联系方式,一起交流