【发布时间】:2012-08-08 21:27:48
【问题描述】:
我有一个类似的表结构
comment_id primary key
comment_content
comment_author
comment_author_url
当我像
这样触发查询时explain SELECT * FROM comments ORDER BY comment_id
将结果输出为
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE comments ALL NULL NULL NULL NULL 22563 Using filesort
为什么找不到我定义为主键的索引?
【问题讨论】:
标签: mysql indexing database-performance explain