数据库的好处
- 可以持久化数据到本地
- 结构化查询
数据库的常见概念
- DB:数据库,存储数据的容器
- DBMS:数据库管理系统,又称为数据库软件,用于创建或者管理DB
- SQL 结构化查询语言,用于和数据库进行通信,不是和某个数据库语言特有的,而是几乎所i有的主流数据库通用的语言
数据库的存储特点
- 数据库存在表中,然后表存在库中
- 一个库中可以有多张表,每一张表具有唯一的表名用来标识自己
- 表中有一个或者多个列,列又称为"字段",相当于java中的属性
- 表中的每一行数据,相当于java中的"对象"也叫元组