Auto commit

This commit is contained in:
2025-02-25 09:12:11 +08:00
parent c57e611d42
commit 02b5667ffc
+5 -5
View File
@@ -274,7 +274,7 @@ FROM teachers t
WHERE t.`name` LIKE '李%'; WHERE t.`name` LIKE '李%';
#6. #6.
SELECT st.* SELECT DISTINCT st.*
FROM students st, scores sc FROM students st, scores sc
WHERE st.id = sc.student_id AND sc.course_id = ( WHERE st.id = sc.student_id AND sc.course_id = (
SELECT c.id SELECT c.id
@@ -293,10 +293,10 @@ HAVING COUNT(*) < 3;
#8." 01 " #8." 01 "
SELECT st.* SELECT st.*
FROM students st, scores sc FROM students st, scores sc
WHERE st.id = sc.student_id AND sc.course_id IN( WHERE st.id = sc.student_id AND st.id <> '01' AND sc.course_id IN(
SELECT SELECT course_id
FROM courses FROM scores s
WHERE student_id = '01' WHERE s.student_id = '01'
); );
#9." 01 " #9." 01 "