数据库的基础知识08

 时间:2024-10-16 11:31:27

1、笛卡尔积--表与表的运算例:select *from student,class

数据库的基础知识08

2、外键: 如果一个属性它不是它所在表的主键,但是它是另一个表的主键,它就称为它在表的外键。where 连接条件 and 定语条件

3、例:1.查询班号、班名及其所在系号、系名select classno,classname,class.departno,departnamefrom class,departmentwhere department.departno=class.departno

数据库的基础知识08

4、例:2.查询学生的姓名及其所选的课程的名称select stuname,counamefrom student,course,stucouwh髫潋啜缅ere student.stuno=stucou.stuno and course.couno=stucou.couno

数据库的基础知识08

5、例:3.查询选修了旅游系开设的课程的学生的姓名, 课程名称、授课教师select stuname,couname,teacherfrom student,course,stucou,departmentwhere student.stuno=stucou.stuno and course.couno=stucou.couno and department.departno=course.departno and departname='旅游系'

数据库的基础知识08
  • 关于回答VC6MFC定义圆类、直线类、矩形类,绘图
  • 对表数据进行插入,更新和删除的操作
  • 怎么输入二维字符数组排序
  • 如何通过CSS实现圆角边框?html圆角边框代码?
  • java简易实现加减乘除代码
  • 热门搜索
    茭白的做法大全 肉包子馅的做法 包子的做法大全 红烧茄子的家常做法 爻怎么读 炒鱿鱼的做法 腐竹怎么泡最快 转氨酶高是怎么回事 猫耳朵的做法 羊肉丸子汤的做法