explain select ..贴出以供分析。

解决方案 »

  1.   

    表都是有主键索引的。
     explain  select * from site_base t left join node  nd  on  nd.ID = t.site_id
     site_base是视图 
     执行计划:
    id   select_type  table   type        ...                      rows    Extra
    1 SIMPLE    n   ALL       null 454 Using where
    1 SIMPLE    nd   ALL       null 454
    请问 这个有什么问题么。