SQL查询刚開始学习的人指南读书笔记(一)关系数据库和SQL介绍
2017-04-24 09:57
369 查看
PART I:Relational Databases and SQL
Chapter2, Ensuring Your Database Structure IsSound.
数据库设计准则
什么是关系数据库
RDBMS (A Relational database management systems)关系数据库
Tables
Tables are the mainstructures in the database. Each table always represents a
single, specific subject.
Fields
A field is the smallest structure in the database, and it represents a characteristic
of the subject of the table to which it belongs.
Records
A record represents a unique instance of the subject of a table.
Keys
Keys are special fields that play very specific roles with in a table.eg.
primary key
foreign key
主键的最主要作用是保证数据记录的唯一性,就是说主键约束要保证在一个数据库表里的全部的数据记录都是不同的个体,比如:身份证号码能够保证一个人在大陆范围内是一个独立的个体(弄错了的不算)。即一个身份证号码不能标识两个人或两个身份证号码标识一个人。所以主键是从现有的数据里分析出来的,不是设计人员任意加上去的。
Relationships
one-to-one
one-to-many
many-to-many
Chapter2, Ensuring Your Database Structure IsSound.
数据库设计准则
什么是关系数据库
RDBMS (A Relational database management systems)关系数据库
Tables
Tables are the mainstructures in the database. Each table always represents a
single, specific subject.
Fields
A field is the smallest structure in the database, and it represents a characteristic
of the subject of the table to which it belongs.
Records
A record represents a unique instance of the subject of a table.
Keys
Keys are special fields that play very specific roles with in a table.eg.
primary key
foreign key
主键的最主要作用是保证数据记录的唯一性,就是说主键约束要保证在一个数据库表里的全部的数据记录都是不同的个体,比如:身份证号码能够保证一个人在大陆范围内是一个独立的个体(弄错了的不算)。即一个身份证号码不能标识两个人或两个身份证号码标识一个人。所以主键是从现有的数据里分析出来的,不是设计人员任意加上去的。
Relationships
one-to-one
one-to-many
many-to-many
相关文章推荐
- SQL查询刚開始学习的人指南读书笔记(三)值表达式
- SQL查询刚開始学习的人指南读书笔记(二)创建SQL查询
- SQL 数据库 学习 017 查询-00 介绍 scott 例子库
- Oracle Database :Oracle11g SQL开发指南学习笔记之(4):关系数据库
- SQL的详细语法介绍——对于学习数据库最基础知识一
- SQL的详细语法介绍——对于学习数据库最基础知识一
- SQL学习:主键,外键,主键表,外键表,数据库的表与表之间的关系;
- 数据库SQL之表关系&连接查询
- 学习数据库必须掌握的54条SQL查询语句
- 数据库学习笔记(二)---SQL查询语句
- 云计算学习笔记---Hadoop简介,hadoop实现原理,NoSQL介绍...与传统关系型数据库对应关系,云计算面临的挑战
- Oracle Database 11g SQL 开发指南学习笔记:高级查询
- MySQL关系数据库SQL命令使用学习记录
- SQL的详细语法介绍——对于学习数据库最基础知识二
- 两次SQL 学习之感悟——数据库查询语言——走进数据系列之十二
- 数据库学习笔记---SQL基础-->层次化查询(START BY ... CONNECT BY PRIOR)
- SQL的详细语法介绍——对于学习数据库最基础知识[转]
- 学习数据库必须掌握的54条SQL查询语句
- 云计算学习笔记003---Hadoop简介,hadoop实现原理,NoSQL介绍...与传统关系型数据库对应关系,云计算面临的挑战
- 数据库学习--sql多条件查询case when then