码迷,mamicode.com
首页 >  
搜索关键字:explain    ( 1254个结果
mysql中explain看性能
select distinct col_namefrom tablewhere a=Xand b=Yand date(time)='xx-xx-xx';执行时间27.9772 秒explainselectdistinct col_namefrom tablewhere a=Xandb=Yanddat...
分类:数据库   时间:2015-01-09 22:13:55    阅读次数:266
mysql模糊查询优化
使用下面的函数来进行模糊查询,如果出现的位置>0,表示包含该字符串。 查询效率比like要高。 如:  table.field like ‘%AAA%’ 可以改为 locate (‘AAA’ , table.field) > 0 注:locate(substr,str) 用explain查看结果,rows越少越好! 1、用like查询     2、用locate查询...
分类:数据库   时间:2015-01-09 20:58:12    阅读次数:209
详解MySQL中EXPLAIN解释命令
explain显示了mysql如何使用索引来处理select语句以及连接表。可以帮助选择更好的索引和写出更优化的查询语句。使用方法,在select语句前加上explain就可以了。如:explain select * form account 类似下面输出EXPLAIN列的解释:table:显示这一...
分类:数据库   时间:2015-01-09 14:01:18    阅读次数:187
Script Recording & Playback for Dummies (from SCN)
Link : http://scn.sap.com/docs/DOC-57020This document will explain how to automate the execution of steps in SAP using the Script Recording and Playba...
分类:其他好文   时间:2015-01-07 20:35:57    阅读次数:356
explain 用法详解
explain显示了mysql如何使用索引来处理select语句以及连接表。可以帮助选择更好的索引和写出更优化的查询语句。使用方法,在select语句前加上explain就可以了:如:explainselectsurname,first_nameforma,bwherea.id=b.idEXPLAI...
分类:其他好文   时间:2015-01-05 10:44:54    阅读次数:173
tkprof
TKPROF可以把Trace源文件转换为更易读的形式。Usage:tkproftracefileoutputfile[explain=][table=][print=][insert=][sys=][sort=]
分类:其他好文   时间:2015-01-05 07:12:46    阅读次数:170
Additive equations
题目描述     We all understand that an integer set is a collection of distinct integers. Now the question is: given an integer set, can you find all its addtive equations? To explain what an addi...
分类:其他好文   时间:2015-01-04 06:29:52    阅读次数:229
MySQL 5.6 查询优化器改进
一.ICP注意一下ICP的使用条件:只能用于二级索引(secondaryindex)。explain显示的执行计划中type值(join类型)为range、ref、eq_ref或者ref_or_null。且查询需要访问表的整行数据,即不能直接通过二级索引的元组数据获得查询结果(索引覆盖)。ICP可以用于MyISAM和InnnoDB存储引..
分类:数据库   时间:2014-12-26 14:52:59    阅读次数:244
MySQL Explain详解
在日常工作中,我们会有时会开慢查询去记录一些执行时间比较久的SQL语句,找出这些SQL语句并不意味着完事了,些时我们常常用到explain这个命令来查看一个这些SQL语句的执行计划,查看该SQL语句有没有使用上了索引,有没有做全表扫描,这都可以通过explain命令来查看。所以我们深入了解MySQL...
分类:数据库   时间:2014-12-20 18:09:55    阅读次数:237
Mysql 索引优化
explain sql语句,查看使用索引情况查看执行时间参考文章:http://www.cnblogs.com/ggjucheng/archive/2012/11/15/2772058.html1、 开启 profiling 参数 set profiling=1;在开启 Query Profiler...
分类:数据库   时间:2014-12-19 20:31:21    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!