![](https://csdnimg.cn/release/download_crawler_static/88050618/bg12.jpg)
Redis 面试问题解析.....................................................................................................................258
数据库知识点汇总........................................................................................................................259
1.
事务四大特性(ACID)原子性、一致性、隔离性、持久性?.....................................259
2.
事务的并发?事务隔离级别,每个级别会引发什么问题,MySQL 默认是哪个级别?260
事务的并发问题............................................................................................................260
事务的隔离级别............................................................................................................261
补充:............................................................................................................................261
3.
MySQL 常见的三种存储引擎(InnoDB、MyISAM、MEMORY)的区别?..........................262
MySQL 存储引擎 MyISAM 与 InnoDB 如何选择 .............................................................262
关于 MySQL 数据库提供的两种存储引擎,MyISAM 与 InnoDB 选择使用:..............262
MEMORY 存储引擎...........................................................................................................263
4.
MySQL 的 MyISAM 与 InnoDB 两种存储引擎在,事务、锁级别,各自的适用场景?.263
5.查询语句不同元素(where、jion、limit、group by、having 等等)执行先后顺序?
................................................................................................................................................264
6.
什么是临时表,临时表什么时候删除? ........................................................................264
7.
MySQL B+Tree 索引和 Hash 索引的区别? .....................................................................265
Hash 索引.......................................................................................................................265
B+Tree 索引...................................................................................................................265
B+树索引和哈希索引的明显区别是: ........................................................................266
8.
sql 查询语句确定创建哪种类型的索引,如何优化查询..............................................266
9.
聚集索引和非聚集索引区别? ........................................................................................266
10.
有哪些锁(乐观锁悲观锁),select 时怎么加排它锁?.........................................267
悲观锁(Pessimistic Lock)....................................................................................267
乐观锁(Optimistic Lock)......................................................................................267
总结................................................................................................................................268
11.
非关系型数据库和关系型数据库区别,优势比较?...................................................269
非关系型数据库的优势:............................................................................................269
关系型数据库的优势:................................................................................................269
总结................................................................................................................................269
12.
数据库三范式,根据某个场景设计数据表?...............................................................269
第一范式(确保每列保持原子性) ................................................................................269
第二范式(确保表中的每列都和主键相关).................................................................270
第三范式(确保每列都和主键列直接相关,而不是间接相关)...................................270
13.
数据库的读写分离、主从复制,主从复制分析的 7 个问题?.................................270
主从复制的几种方式....................................................................................................270
同步复制................................................................................................................270
异步复制................................................................................................................270
半同步复制............................................................................................................271
主从复制分析的 7 个问题 ..........................................................................................271
14.
使用 explain 优化 sql 和索引?...................................................................................272
15.
MySQL 慢查询怎么解决? ...............................................................................................273