-- 检查编号206的学生班级数据
SELECT 
    sc.id,
    sc.student_id,
    sc.class_id,
    c.class_name,
    sc.status,
    sc.join_time,
    sc.create_time,
    sc.update_time
FROM student_class sc
LEFT JOIN class c ON sc.class_id = c.id
WHERE sc.student_id = 206
ORDER BY sc.create_time DESC;

-- 检查这个学生在课程分配表中的数据
SELECT 
    ca.id,
    ca.course_id,
    ca.student_id,
    ca.class_id,
    co.course_name,
    cl.class_name
FROM course_assignment ca
LEFT JOIN course co ON ca.course_id = co.id
LEFT JOIN class cl ON ca.class_id = cl.id
WHERE ca.student_id = 206
ORDER BY ca.create_time DESC;

-- 检查sys_user表中的数据
SELECT user_id, nick_name, user_name, remark
FROM sys_user
WHERE user_id = 206;
