SELECT student.studnt_id,student_onfo.student_name,subject,marks
FROM `student`
INNER JOIN 'student_info' ON student.studnt_id=student_info.studnt_id
ORDER BY student.studnt_id
当我触发此查询时,它向我显示此错误
SELECT student.studnt_id,student_onfo.student_name,subject,marks
FROM `student`
INNER JOIN 'student_info' ON student.studnt_id=student_info.studnt_id
ORDER BY student.studnt_id
当我触发此查询时,它向我显示此错误
SELECT student.studnt_id,student_info.student_name,subject,marks
FROM `student`
INNER JOIN `student_info` ON student.studnt_id=student_info.studnt_id
ORDER BY student.studnt_id
试试这个查询。
您在这里有拼写错误:-
student_onfo.student_name
->student_info.student_name
“学生信息”->student_info
试试这个——
SELECT
s.studnt_id
, si.student_name
, subject
, marks
FROM student AS s
JOIN student_info AS si ON s.studnt_id = si.studnt_id
ORDER BY s.studnt_id