-4
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

当我触发此查询时,它向我显示此错误

4

2 回答 2

3
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

于 2013-06-10T07:32:41.043 回答
1

试试这个——

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
于 2013-06-10T07:33:04.017 回答