现有学生表(student_tb)和班级表(class_tb),学生表有外键(class_id),连接查询学生信息,要求显示学生名称和年龄,未登记班级的学生信息和班级信息均不显示,以下代码正确的是()。

发布于 2021-06-26 23:46:01
【单选题】
A select studentName,Age from student_tb s left join class_tb c on s.class_id = c.class_id
B select studentName,Age from student_tb s right join class_tb c on s.class_id = c.class_id
C select studentName,Age from student_tb s , class_tb c on s.class_id = c.class_id
D select studentName,Age from student_tb s inner join class_tb c on s.class_id = c.class_id

查看更多

关注者
0
被浏览
166
  • 体验AI问答!更聪明、超智能!
  • 一款基于GPT的超级AI助手,可以对话、创作、写文案!
1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

手机
浏览

扫码手机浏览

分享
好友

在线
客服