博客
关于我
Mysql索引
阅读量:93 次
发布时间:2019-02-25

本文共 1505 字,大约阅读时间需要 5 分钟。

MySQL?????????????

??????????????????????????????????????????????????????????????????????????????MySQL???


????????

???MySQL??????????????????????????????????????????????????????????????????????????????????MySQL??????????????????????????


???????

??????????????IO??????????????????????????????????????????????????B+??????????????????????????IO???

B+??????

B+????????????????????????????????????

  • ???????????????????????????IO???
  • ?????????????????????????????
  • ?????????????????????
  • ???????????????????????IO???????????????????????


    B+????

  • ?????????????

    ????????????????????int??????????????????????

  • ??????????

    B+???????????????????????????????????????????

  • ??????

    ????????????????????????????


  • ??????????

    1. ????

    • ?????????????????
    • ????????????????????
    • ?????????????????????
    • ??????????????????????????

    2. ??????

    • ???????ID??????????????????
    • ?????????????????????????
    • ???????????????????????

    ?????????

    1. ????

    • ??????????

      create table s1(  id int,  name varchar(20),  gender char(6),  email varchar(50),  primary key(id));
      create index idx_name on s1(name);
    • ???????

      create index idx_id on s1(id);
    • ?????

      drop index idx_name on s1;

    2. ??????

    • ?????????????????????????
    • ??????????????????????
    • ??????????????????

    ?????????

    ???????????????????

    • ??????email LIKE '%cn%'?
    • ??????reverse(email) = 'wupeiqi'?
    • ???????????nid != 123??nid???????????

    ???????

  • ????????????????????
  • ????*????????????
  • ?????????????????????

  • ??

    ????????????????????????????????????????IO???????????????????????????????????????????????????????????????????

    转载地址:http://oqt.baihongyu.com/

    你可能感兴趣的文章
    php-laravel框架用户验证(Auth)模块解析(二)注册模块
    查看>>
    php-laravel框架用户验证(Auth)模块解析(四)忘记密码
    查看>>
    php-redis中文参考手册_Ping_echo_set_get_setex_psetex_...
    查看>>
    Redis使用不当导致应用卡死
    查看>>
    PHP-Shopify-API-Wrapper 使用教程
    查看>>
    php-兔子问题,斐波那契数列
    查看>>
    PHP-希尔排序
    查看>>
    PHP-快速排序的2种实现方法
    查看>>
    Redis使用lua脚本
    查看>>
    php-数据结构-二叉树的构建、前序遍历,中序遍历,后序遍历,查找,打印
    查看>>
    php-有序数组合并后仍有序
    查看>>