请教explain中extra using where问题

zll_lover 2010-06-24 02:48:20
请问什么时候会出现using where呢,我测试有的时候出现有的时候不出现,晕了
谢谢
...全文
792 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
ACMAIN_CHM 2010-06-24
  • 打赏
  • 举报
回复
[Quote]我测试有的时候出现有的时候不出现,晕了[/Quote]
贴出你的具体语句来分析一下。

哪些语句你的没有出现这个? 哪些语句出现了这个Using where ?
rucypli 2010-06-24
  • 打赏
  • 举报
回复
Where used

使用了WHERE从句来限制哪些行将与下一张表匹配或者是返回给用户。如果不想返回表中的全部行,并且连接类型ALL或index,这就会发生,或者是查询有问题
rucypli 2010-06-24
  • 打赏
  • 举报
回复
Extra 关于MySQL如何解析查询的额外信息。
ACMAIN_CHM 2010-06-24
  • 打赏
  • 举报
回复
手册中的解释如下。

[Quote]Using where

A WHERE clause is used to restrict which rows to match against the next table or send to the client. Unless you specifically intend to fetch or examine all rows from the table, you may have something wrong in your query if the Extra value is not Using where and the table join type is ALL or index.
[/Quote]

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧