摘要: mysql强制索引和禁止某个索引 1、mysql强制使用索引:force index(索引名或者主键PRI) 例如: select * from table force index(PRI) limit 2;(强制使用主键) select * from table force index(zidua 阅读全文
posted @ 2018-11-13 18:54 水木神舟10 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 这种执行效率执行时间在秒级以上,几秒到几十秒,数据量大时甚至更长 这种执行效率执行时间在毫秒级,1~2百毫秒左右 阅读全文
posted @ 2018-11-13 18:49 水木神舟10 阅读(873) 评论(0) 推荐(0) 编辑