ITPub博客

首页 > IT职业 > IT图书 > 数据库

数据库

IT图书 作者:hunter_tols 时间:2021-09-09 09:13:14 0 删除 编辑

use Xk--访问xk数据库
go--执行
select Student .StuName ,Course .CouName --查询学生表中学生姓名和课程表中的课名
from Student join StuCou --定义student和stucou表
on Student.StuNo =StuCou .StuNo --学生表的学生编号和选课表的学生编号关联
join Course
on StuCou.CouNo =Course.CouNo --学生选课表的课程编号和课程表的课程编号关联
go
图片描述

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4604/viewspace-2800720/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-08

  • 博文量
    87
  • 访问量
    617