数据库中学生表和课程表如下:

Sql server中内连接语句  

Sql server中内连接语句

内连接sql语句:

select a.studentName,a.studentAge,b.courseName 
from student a inner join course b 
on a.studentID=b.studentID

查询结果如下:

Sql server中内连接语句

查询的结果是以从表course为主,没有就不显示。

相关文章:

  • 2021-06-07
  • 2021-11-04
  • 2021-11-07
  • 2022-01-07
  • 2021-07-30
  • 2021-08-29
  • 2021-12-17
猜你喜欢
  • 2021-12-27
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
相关资源
相似解决方案