charlesblc

可以用这个命令:

 show index from table_name;

得到输出:

+------------------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table            | Non_unique | Key_name   | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+------------------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| table_name |          0 | PRIMARY    |            1 | id          | A         |      661757 |     NULL | NULL   |      | BTREE      |         |               |
| table_name |          0 | product_id |            1 | product_id  | A         |      661757 |     NULL | NULL   |      | BTREE      |         |               |
+------------------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
2 rows in set (0.00 sec)

 

分类:

技术点:

相关文章:

  • 2022-03-11
  • 2022-12-23
  • 2021-12-03
  • 2021-12-05
  • 2021-12-03
  • 2021-12-24
  • 2021-12-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-12
  • 2021-12-03
  • 2021-12-03
  • 2021-12-15
相关资源
相似解决方案