select couunt from stu a inner join sc b on acno=bcno inner join cou c on bsno=csno where college=汽车学院 groop by sname heving count 30;请告诉我语法上有什么问题
- "select couunt()" should be "select count()".
- "groop by" should be "group by".
- There seems to be a typo in "heving". It should be "having".
- The query is missing a semicolon at the end.
Corrected query:
SELECT count() FROM stu a INNER JOIN sc b ON a.cno = b.cno INNER JOIN cou c ON b.sno = c.sno WHERE college = '汽车学院' GROUP BY sname HAVING count() > 30;
原文地址: https://www.cveoy.top/t/topic/c00c 著作权归作者所有。请勿转载和采集!