随笔分类 -  mysql

摘要:explain出的有下列几项: 1、select_type 2、type 1、all 全表扫描,从表头扫描到表尾; 2、index 根据索引来读取数据,如果索引已包含了查询数据,只需扫描索引树,否则执行全表扫描和All类似; 3、range 以范围的形式扫描索引 3、table 4、possible 阅读全文
posted @ 2017-03-15 11:46 Seekload 阅读(270) 评论(0) 推荐(0)
摘要:https://www.digitalocean.com/community/tutorials/how to install mysql on centos 7 https://typecodes.com/linux/yuminstallmysql5710.html http://bbs.best 阅读全文
posted @ 2017-03-14 18:13 Seekload 阅读(96) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/starof/p/4680083.html 阅读全文
posted @ 2017-02-28 17:00 Seekload 阅读(82) 评论(0) 推荐(0)
摘要:B Tree和B+Tree的概念可以参考以下几个帖子,重点记住为什么会采用B Tree(B tree/B+tree),而不采用二叉搜索树、红黑树等作为索引结构;以及记住B Tree和B+Tree之间的概念区别。 http://taop.marchtea.com/03.02.html http://b 阅读全文
posted @ 2017-02-23 09:55 Seekload 阅读(209) 评论(0) 推荐(0)
摘要:count( ) 对行数进行计算,包括NULL; count(column) 计算特定的列的值的行数,不包括NULL; count(1)这个用法和count( )的结果是一样的。 http://blog.csdn.net/qianweifeng123/article/details/51078144 阅读全文
posted @ 2017-02-22 13:18 Seekload 阅读(153) 评论(0) 推荐(0)
摘要:http://www.codetc.com/article 309 1.html http://blog.csdn.net/jesseyoung/article/details/38037543 https://www.kancloud.cn/kancloud/theory of mysql ind 阅读全文
posted @ 2017-02-19 11:53 Seekload 阅读(92) 评论(0) 推荐(0)
摘要:建表语句: CREATE TABLE ( int(11) NOT NULL AUTO_INCREMENT, varchar(150) NOT NULL DEFAULT '', varchar(150) NOT NULL DEFAULT '', int(11) NOT NULL DEFAULT '0' 阅读全文
posted @ 2017-02-14 10:49 Seekload 阅读(184) 评论(0) 推荐(0)
摘要:今天重新温习一遍mysql的知识 先来讲讲where、group by、having group by :是将记录中的数据,按照条件进行分组; having:是将分组后的数据加上条件筛选,区别于where分组前的筛选。 http://blog.csdn.net/eclipsexys/article/ 阅读全文
posted @ 2017-02-13 23:24 Seekload 阅读(3486) 评论(0) 推荐(0)
摘要:以InnoDB来说,每个InnoDB表具有一个特殊的索引称为聚集索引。如果您的表上定义有主键,该主键索引是聚集索引。如果你不定义为您的表的主键 时,MySQL取第一个唯一索引(unique)而且只含非空列(NOT NULL)作为主键,InnoDB使用它作为聚集索引。如果没有这样的列,InnoDB就自 阅读全文
posted @ 2016-04-13 11:14 Seekload 阅读(2920) 评论(0) 推荐(0)