摘要: mysql 演示数据库:http://downloads.mysql.com/docs/sakila-db.zip mysql 中排序方式 有序索引顺序扫描直接返回有序数据 explain select customer_id from customer order by store_id\G; 这 阅读全文
posted @ 2017-06-28 21:08 心碎whn 阅读(395) 评论(0) 推荐(0) 编辑
摘要: mysql 演示数据库:http://downloads.mysql.com/docs/sakila-db.zip 以%开头的LIKE查询不能够利用B-tree索引 explain select * from actor where last_name like '%NI%'\G; explain 阅读全文
posted @ 2017-06-28 19:18 心碎whn 阅读(22753) 评论(0) 推荐(0) 编辑
摘要: mysql 演示数据库:http://downloads.mysql.com/docs/sakila-db.zip 匹配全值 explain select * from rental where rental_date='2005-05-25 17:22:10' and inventory_id=3 阅读全文
posted @ 2017-06-28 11:24 心碎whn 阅读(954) 评论(0) 推荐(1) 编辑
摘要: ps(查看系统下所有进程) ps aux 显示系统中所有的进程,使用BSD操作系统格式(aux 前面没有-) ps -le 显示系统中所有的进程,使用linux的标准格式 ps aux 输出说明 pstree(查看进程树) pstree top 在top命令的交互模式中可以执行的命令 top输出内容 阅读全文
posted @ 2017-06-28 01:24 心碎whn 阅读(270) 评论(0) 推荐(0) 编辑