Mysql查询,关于执行速度的问题 [英] Mysql query, question about speed of execution

查看:129
本文介绍了Mysql查询,关于执行速度的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!我想问你,什么SQL查询将更快执行,当我指定我希望选择的表字段或何时只写LEFT JOIN,而没有指定它?

Hello! I want to ask you, what SQL query will be execute faster, when i specify table fields that i wish to select or when i write only LEFT JOIN, without cpecify it?

推荐答案

鉴于您已添加了一个示例,我相信第一个查询应该执行得更快,所有条件都相同。你应该把索引字段放在最左边。



您也可以尝试使用MySql的工具来评估执行速度(我没有使用MySql很长时间时间,所以不记得有什么工具可用于此目的。)
Given that you have added an example I believe the first query should execute faster, all things being equal. You should place indexed fields left most.

You could also try using MySql''s tools to evaluate speed of execution (I haven''t used MySql for a long time so don''t recall what tools are available for that purpose).


这篇关于Mysql查询,关于执行速度的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆