【问题标题】:How to create/declare secondary index in MySQL?如何在 MySQL 中创建/声明二级索引?
【发布时间】:2021-05-15 15:34:02
【问题描述】:

我可以使用什么 sintaxis 在 MySQL 表的任何列上创建二级索引?

【问题讨论】:

标签: mysql database indexing


【解决方案1】:

对于非聚集索引,会想要使用类似的东西:

CREATE INDEX `idx_{name}` ON `{TableName}` (`{column}`, `{column}`);

请务必将波浪括号中的项目更改为更适合您目标的项目。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-07-10
    • 1970-01-01
    • 1970-01-01
    • 2018-05-04
    • 2017-10-11
    • 1970-01-01
    • 2018-06-21
    • 2012-04-23
    相关资源
    最近更新 更多