如果在age上建立索引,那么索引是在什么情况下用?select agefrom table还是select * from table where age>20?请各位大神解惑
2条回答 默认 最新
- Li-Sai 2014-05-15 11:44关注
索引 就是在你查询的时候 更快捷 ,就像目录一样 如果你age加了索引
select * from ### where age=## 比 select * from ### where name = ## 要快解决 无用评论 打赏 举报
如果在age上建立索引,那么索引是在什么情况下用?select agefrom table还是select * from table where age>20?请各位大神解惑
索引 就是在你查询的时候 更快捷 ,就像目录一样 如果你age加了索引
select * from ### where age=## 比 select * from ### where name = ## 要快