用户Csrpm3369394(提问者)SELECT
A.STUDENTNO AS \'学号\',
A.STUDENT_NAME AS \'姓名\',
A.CLASSNO AS \'班级\',
A.AGE AS \'年龄\',
A.SEX AS \'性别\',
A.ADDRESS AS \'家庭地址\',
A.PHOTO AS \'照片\',
B.ID AS \'序号\',
B.STUDENTNO AS \'学号\',
B.COURSE AS \'科目\',
B.GRADE AS \'成绩\'
FROM STUDENTINFO A LEFT JOIN CourseGrage B ON A.STUDENTNO = B.STUDENTNO
WHERE
A.STUDENTNO = \'${学号}\' and A.CLASSNO= \'${班级}\'