zoukankan      html  css  js  c++  java
  • mysql index 8.0

    创建表

    use vodb;
    drop table if exists test1;
    create table  test1(id  int NOT NULL AUTO_INCREMENT primary key COMMENT '主键',uid int, tid int,tname varchar(12),tvalue varchar(90),createtime datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',key tid(tid),unique key uid(uid)) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4;

    倒序索引,Backward index scan

    mysql> explain select * from test1 where tid < 10 order by tid desc;
    +----+-------------+-------+------------+-------+---------------+------+---------+------+------+----------+--------------------------------------------+
    | id | select_type | table | partitions | type  | possible_keys | key  | key_len | ref  | rows | filtered | Extra                                      |
    +----+-------------+-------+------------+-------+---------------+------+---------+------+------+----------+--------------------------------------------+
    |  1 | SIMPLE      | test1 | NULL       | range | tid           | tid  | 5       | NULL |   91 |   100.00 | Using index condition; Backward index scan |
    +----+-------------+-------+------------+-------+---------------+------+---------+------+------+----------+--------------------------------------------+
    1 row in set, 1 warning (0.00 sec)
  • 相关阅读:
    轻量级通用上采样算子-CARAFE
    图像分割-Mask Scoring R-CNN
    对C#Chart控件使用整理
    C#中的三种timer
    C#的三大难点
    将Excel的数据导入DataGridView中(转)
    状态者设计模式
    C# 中 DataTable 使用详解。
    Excel连接字符串在.NET中的应用
    状态机设计思想
  • 原文地址:https://www.cnblogs.com/perfei/p/14680879.html
Copyright © 2011-2022 走看看