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

2011年6月27日

摘要: explain的语法如下:explain [extended] select … from … where …如果使用了extended,那么在执行完explain语句后,可以使用show warnings语句查询相应的优化信息。比如我们执行 select uid from user where uname=’scofield’ order by uid 执行结果会有| id | select_type | table | type| possible_keys | key | key_len | ref | rows | Extra |这些东西。其中 table 表示是哪个表的数据。type 阅读全文

posted @ 2011-06-27 17:42 峰雪 阅读(227) 评论(0) 推荐(0) 编辑