文档详情

结构化查询语言。.ppt

发布:2018-06-18约3.24千字共42页下载文档
文本预览下载声明
结构化查询语言 插入(Insert) 结构化查询语言 删除(delete) 结构化查询语言 更新(update) 结构化查询语言 选择(select) 结构化查询语言 投影(project) 结构化查询语言 连接(join) 结构化查询语言 并(union) 结构化查询语言 交(Intersection) 结构化查询语言 差(Difference) 数据库是数据在逻辑上的集合,而不强调其在物理上的相关。 关系可以被认为是二维表,每一列称为属性,每一行称为元组。 select * from RELATION-NAME where criteria select * from COURSES where Unit=5 select attribute-list from RELATION-NAME select No,Unit from COURSES select attribute-list from RELATION1, RELATION2 where criteria select No,Course-Name, Unit, Professor from COURSES,TAUGHT-BY where COURSES.No=TAUGHT-BY.Bo; select * from RELATION1 union select * from RELATION2 select * from CIS15-Roster union select * from CIS52-Roster; select * from RELATION1 intersection select * from RELATION2 select * from CIS15-Roster intersection select * from CIS52-Roster; select * from RELATION1 minus select * from RELATION2 select * from CIS15-Roster minus select * from CIS52-Roster; OTHER DATABASE MODELS 14.7 Distributed databases:分布式数据库模型。 基于关系模型;数据存储在通过互联网通信的计算机上。 Object-Oriented Databases:面向对象数据库。 Key terms Summary ? 数据库管理系统(DBMS)定义、创建、维护数据库,并且控制用户对数据库的存取。 数据库管理系统由硬件、软件、数据、用户和规程组成。 ? 数据库管理系统的用户可以是人也可以是应用程序。 ? 数据库管理系统有三个层次:内层、概念层、外层。 Chapter 14 Databases Understand a DBMS and define its components. Understand the architecture of a DBMS and its levels. Distinguish between different database models. Understand the concept of relational database operations on a relation. After reading this chapter, the reader should be able to: OBJECTIVES Use Structured Query Language (SQL) to define simple relations. 14.1 Database management system 14.3 database Models 14.2 Architecture Contents 14.5 Operations on Relations Summary 14.4 Relational Model 14.6 Structured Query Language 14.7 Other Database Models DATABASE MANAGEMENT SYSTEM 14.1 Database(数据库):数据逻辑上的集合,而不强调其在物理上的相关。 Database management system(DBMS):数据库管理系统,是定义(define)、创建(create)、维护(maintain)数据库的一种工具。 Key terms Figure 14-1 DBMS components 硬件 规程 用户 数据 软件 user(用户) (1)End user(最终用户):直接从数据库中获
显示全部
相似文档