
database
文章平均质量分 73
dh_chen
从小立志做名低俗的诗人~_~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
MySQL多列索引
多列索引(Multiple-Column Indexes)也称为复合索引(composite index),也即同时对多个列建立索引。 那么问题来了,建立多列索引后,例如建立索引(a, b, c),那么单独对a或者b或者c进行查询,会走索引这条路线吗? 答案是:根据最左前缀原则,也就是对a或者(a,b)或者(a, b, c)查询会用到索引,但以b或者c来查询而不加上a则不会走索引,原创 2016-06-13 17:16:14 · 1719 阅读 · 0 评论 -
leetcode 182. Duplicate Emails
题目描述: Write a SQL query to find all duplicate emails in a table named Person. +----+---------+ | Id | Email | +----+---------+ | 1 | a@b.com | | 2 | c@d.com | | 3 | a@b.com | +----+--------原创 2016-07-24 15:25:50 · 448 阅读 · 0 评论