约 10 分钟
写内连接要说清按什么连。用 ON 指明配对规则:SELECT * FROM borrows JOIN students ON borrows.student_id = students.id; 意思是借书表的 student_id 和学生表的 id 相等就拼在一起。
ON 后面写的是什么?
登录 后可看答案