-- 查看编号206的班级记录
SELECT 
    sc.id,
    sc.student_id,
    sc.class_id,
    c.class_name,
    sc.status,
    sc.join_time,
    sc.create_time
FROM student_class sc
LEFT JOIN class c ON sc.class_id = c.id
WHERE sc.student_id = 206
ORDER BY sc.join_time DESC, sc.create_time DESC;
