jackyrong

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年6月22日

摘要: 1 使用explain语句去查看分析结果,如 explain select * from test1 where id=1; 会出现: id selecttype table type possible_keys key key_len ref rows extra各列 其中,type=const表示通过索引一次就找到了,key=primary的话,表示使用了主键 type=all,表示为全表... 阅读全文
posted @ 2010-06-22 23:19 jackyrong的世界 阅读(441) 评论(0) 推荐(0) 编辑