MySQL数据库目录 作者:马育民 • 2020-02-03 17:51 • 阅读:10790 # 基础 1. [数据库](https://www.malaoshi.top/show_1EF330ve53zr.html "数据库") 2. [MySQL数据库介绍](https://www.malaoshi.top/show_1EF4uwLTCxzF.html "MySQL数据库介绍") 3. [mysql引擎:InnoDB、MyISAM、Memory、Archive](https://malaoshi.top/show_1IXqlWBrDKW.html "mysql引擎:InnoDB、MyISAM、Memory、Archive") 4. [MySQL InnoDB引擎与主键](https://www.malaoshi.top/show_1EF4FFPNsHCO.html "MySQL InnoDB引擎与主键") 5. [Mysql的utf8mb4,utf8mb4_bin、utf8mb4_general_ci、utf8mb4_unicode_ci区别](https://www.malaoshi.top/show_1EF5mccaUebx.html "Mysql的utf8mb4,utf8mb4_bin、utf8mb4_general_ci、utf8mb4_unicode_ci区别") 6. [MySQL:数据类型](https://malaoshi.top/show_1IXqmffp4Wm.html "MySQL:数据类型") 7. [mysql准备dept、emp表和数据](https://www.malaoshi.top/show_1IX1OSTp4Hbe.html "mysql准备dept、emp表和数据") # [SQL基础](http://www.malaoshi.top/show_1EF32yl3tYSj.html "SQL基础") 1. [mysql数据库操作](https://www.malaoshi.top/show_1EF5mcs7tXpH.html "mysql数据库操作") ### [MySQL-sql单表查询](https://www.malaoshi.top/show_1EF4uwbxaqzh.html "MySQL-sql单表查询") 3. [MySQL-对查询结果进行排序](https://www.malaoshi.top/show_1IXlTJRsEKQ.html "MySQL-对查询结果进行排序") 4. [MySQL-查询去重](https://www.malaoshi.top/show_1IXlTbsX7fx.html "MySQL-查询去重") ### [MySQL-where条件查询](https://www.malaoshi.top/show_1EF4uwevmA5r.html "MySQL-where条件查询") - [MySQL NULL值](https://www.malaoshi.top/show_1GW2ICBt2HJt.html "MySQL NULL值") - [MySQL SQL语句-is、is not判断NULL](https://www.malaoshi.top/show_1IXXR9qMp4E.html "MySQL SQL语句-is、is not判断NULL") - [MySQL-sql多条件查询](https://www.malaoshi.top/show_1IXXRCp3v8m.html "MySQL-sql多条件查询") - [MySQL-sql查询范围:between and](https://www.malaoshi.top/show_1IXXRFoQrPn.html "MySQL-sql查询范围:between and") - [MySQL sql条件查询:in和not in](https://www.malaoshi.top/show_1IXXR1CRFD7.html "MySQL sql条件查询:in和not in") - [MySQL sql模糊查询-like](https://www.malaoshi.top/show_1IXXR4k2QIB.html "MySQL sql模糊查询-like") - [MySQL sql模糊查询-like特殊字符处理('、%、_、\)](http://www.malaoshi.top/show_1IX3C7mPZprK.html "MySQL sql模糊查询-like特殊字符处理('、%、_、\)") ### [MySQL-sql函数](https://www.malaoshi.top/show_1EF4uwgHhWiv.html "MySQL-sql函数") - [MySQL-sql-通用函数](https://www.malaoshi.top/show_1EF4uwpBbL55.html "MySQL-sql-通用函数") - [MySQL-字符串操作](https://www.malaoshi.top/show_1EF4uxFpTGDP.html "MySQL-字符串操作") - [MySQL-获取当前日期时间](https://www.malaoshi.top/show_1IX2b5xulE9u.html "MySQL-获取当前日期时间") - [MySQL查询日期和格式化日期](https://www.malaoshi.top/show_1EF4uxnZuwlq.html "MySQL查询日期和格式化日期") - [MySQL-日期时间间隔计算](//www.malaoshi.top/show_1IX6LAZHhPZa.html "MySQL-日期时间间隔计算") - [MySQL-sql聚合(多行)函数](https://www.malaoshi.top/show_1EF4uxpSwZnv.html "MySQL-sql聚合(多行)函数") - [MySQL-sql数值函数](https://www.malaoshi.top/show_1EF4uxvQ5yr1.html "MySQL-sql数值函数") - [MySQL-IFNULL()判断NULL取另一个值](https://www.malaoshi.top/show_1IXlTQ9mVLZ.html "MySQL-IFNULL()判断NULL取另一个值") ### [MySQL-sql分组查询](https://www.malaoshi.top/show_1EF4uxx7IdY5.html "MySQL-sql分组查询") ### 多表联合查询 - [MySQL-sql多表联合查询(sql92)](https://www.malaoshi.top/show_1EF4uy2hGroF.html "MySQL-sql多表联合查询(sql92)") - [MySQL-sql多表联合查询(sql99)](https://www.malaoshi.top/show_1EF4uy1FYBTC.html "MySQL-sql多表联合查询(sql99)") ### [MySQL-sql子查询](https://www.malaoshi.top/show_1EF4uy55jsaJ.html "MySQL-sql子查询") ### 增删改 - [MySQL-sql增删改](https://www.malaoshi.top/show_1EF4uy8G3HPO.html "MySQL-sql增删改") - [sql truncate清空表(截断表)](https://www.malaoshi.top/show_1EF6Ysy8EwW6.html "sql truncate清空表(截断表)") ### 其他 - [MySQL分页](https://www.malaoshi.top/show_1EF4uyeeHcya.html "MySQL分页") - [MySql 中 case when then else end 的用法](https://www.malaoshi.top/show_1EFhQqz16Lh.html "MySql 中 case when then else end 的用法") # 数据库对象 - [数据库-主键](http://www.malaoshi.top/show_1EF36PwsdfuO.html "数据库-主键") - [MySQL视图](https://www.malaoshi.top/show_1EF4uyXlq2cV.html "MySQL视图") - [MySQL-存储过程](https://www.malaoshi.top/show_1IX64Yj2YCAS.html "MySQL-存储过程") - [MySQL 触发器](https://www.malaoshi.top/show_1IX64k91INts.html "MySQL 触发器") # 索引 - [MySQL索引](https://www.malaoshi.top/show_1EF4uz5d3l26.html "MySQL索引") - [MySQL索引创建、修改、查看](https://www.malaoshi.top/show_1IX3aFZxm68A.html "MySQL索引创建、修改、查看") # 事务 1. [数据库事务(ACID)](https://www.malaoshi.top/show_1EF3uCskLf9s.html "数据库事务(ACID)") 2. [脏读、不可重复读、幻象读](https://www.malaoshi.top/show_1IX9gVCVzZP.html "脏读、不可重复读、幻象读") 2. [数据库的4种事务隔离级别](https://www.malaoshi.top/show_1IX9gjHRSOh.html "数据库的4种事务隔离级别") 4. [mysql:悲观锁、乐观锁,表锁、行锁,共享锁、排他锁](https://malaoshi.top/show_1IXqfxw9xpq.html "mysql:悲观锁、乐观锁,表锁、行锁,共享锁、排他锁") # 用户、权限操作 在mysql`bin`目录下执行`mysql -uroot -p123456`登录数据库 1. [mysql 查询所有用户、创建用户、删除用户](https://www.malaoshi.top/show_1EF5mdNz1pl4.html "mysql 查询所有用户、创建用户、删除用户") 2. [mysql 给用户授权、创建用户并授权、撤销授权](https://www.malaoshi.top/show_1EF5iBIbQAcW.html "mysql 给用户授权、创建用户并授权、撤销授权") 3. [mysql设置密码、修改密码](https://www.malaoshi.top/show_1EF5iBGD4yzU.html "mysql设置密码、修改密码") 4. [mysql查看用户权限](https://www.malaoshi.top/show_1EF5iBSyC9wk.html "mysql查看用户权限") 5. [mysql 修改用户本地远程登录权限](https://www.malaoshi.top/show_1EF5mnB9n85L.html "mysql 修改用户本地远程登录权限") [mysql 的 case when then 用法 和null 的判断](https://www.malaoshi.top/show_1EFhQtfW4oo.html "mysql 的 case when then 用法 和null 的判断") # 导入导出 1. [MySQL导出数据(数据备份)](https://www.malaoshi.top/show_1GW1yZ4iaXqh.html "MySQL导出数据(数据备份)") 2. [MySQL导入数据](https://www.malaoshi.top/show_1GW1yZ7zJDij.html "MySQL导入数据") 原文出处:http://malaoshi.top/show_1EF4uz6PpuR7.html