作家
登录

优化SQL语句的一般步骤

作者: 来源: 2017-08-31 16:11:21 阅读 我要评论

where a.film_id = b.film_id \G 
  •  
  • *************************** 1. row *************************** 
  •           id: 1 
  •  select_type: SIMPLE 
  •        table: b 
  •   partitions: NULL 
  •         type: ALL 
  • possible_keys: PRIMARY 
  •          keyNULL 
  •      key_len: NULL 
  •          ref: NULL 
  •         rows: 1000 
  •     filtered: 100.00 
  •        Extra: NULL 
  • *************************** 2. row *************************** 
  •           id: 1 
  •  select_type: SIMPLE 
  •        table: a 
  •   partitions: NULL 
  •         type: eq_ref 
  • possible_keys: PRIMARY 
  •          keyPRIMARY 
  •      key_len: 2 
  •          ref: sakila.b.film_id 
  •         rows: 1 
  •     filtered: 100.00 
  •        Extra: Using where 
  • rows in set, 1 warning (0.03 sec) 
    1. mysql> create table test_const ( 
    2.    ->         test_id int
    3.    ->         test_context varchar(10), 
    4.    ->         primary key (`test_id`), 
    5.    ->     ); 
    6.     
    7. insert into test_const values(1,'hello'); 
    8.  
    9. explain select * from ( select * from test_const where

        推荐阅读

        远胜微软谷歌等翻译器 | 基于神经网络和超级计算机的DeepL Translator

      Microsoft Translator是微软旗下的翻译对象,痊愈客岁成功切换至神经网路。当时,微软表示比拟较今朝行业内主流的统计机械翻译(SMT)技巧,神经收集架构可以或许大年夜幅晋升翻译质量。德>>>详细阅读


      本文标题:优化SQL语句的一般步骤

      地址:http://www.17bianji.com/lsqh/37055.html

    关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)