From 34429ef828f7177212b635a3a549c0b2e94e82fe Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Wed, 24 Jan 2024 20:28:51 +0800 Subject: [PATCH] Remove duplicate docs for SHOW INDEX, SHOW KEYS infavor of SHOW INDEXES (#16093) (#16281) --- TOC.md | 4 +--- sql-statements/sql-statement-drop-index.md | 2 +- sql-statements/sql-statement-rename-index.md | 2 +- sql-statements/sql-statement-show-index.md | 8 -------- sql-statements/sql-statement-show-indexes.md | 1 + sql-statements/sql-statement-show-keys.md | 8 -------- 6 files changed, 4 insertions(+), 21 deletions(-) delete mode 100644 sql-statements/sql-statement-show-index.md delete mode 100644 sql-statements/sql-statement-show-keys.md diff --git a/TOC.md b/TOC.md index ef05e1cbb682..31a84c2c6ca5 100644 --- a/TOC.md +++ b/TOC.md @@ -812,9 +812,7 @@ - [`SHOW [FULL] FIELDS FROM`](/sql-statements/sql-statement-show-fields-from.md) - [`SHOW GRANTS`](/sql-statements/sql-statement-show-grants.md) - [`SHOW IMPORT JOB`](/sql-statements/sql-statement-show-import-job.md) - - [`SHOW INDEX [FROM|IN]`](/sql-statements/sql-statement-show-index.md) - - [`SHOW INDEXES [FROM|IN]`](/sql-statements/sql-statement-show-indexes.md) - - [`SHOW KEYS [FROM|IN]`](/sql-statements/sql-statement-show-keys.md) + - [`SHOW INDEXES`](/sql-statements/sql-statement-show-indexes.md) - [`SHOW MASTER STATUS`](/sql-statements/sql-statement-show-master-status.md) - [`SHOW PLACEMENT`](/sql-statements/sql-statement-show-placement.md) - [`SHOW PLACEMENT FOR`](/sql-statements/sql-statement-show-placement-for.md) diff --git a/sql-statements/sql-statement-drop-index.md b/sql-statements/sql-statement-drop-index.md index 309436b1309a..9dc06563a586 100644 --- a/sql-statements/sql-statement-drop-index.md +++ b/sql-statements/sql-statement-drop-index.md @@ -102,7 +102,7 @@ Query OK, 0 rows affected (0.30 sec) ## 另请参阅 -* [SHOW INDEX](/sql-statements/sql-statement-show-index.md) +* [SHOW INDEXS](/sql-statements/sql-statement-show-indexes.md) * [CREATE INDEX](/sql-statements/sql-statement-create-index.md) * [ADD INDEX](/sql-statements/sql-statement-add-index.md) * [RENAME INDEX](/sql-statements/sql-statement-rename-index.md) diff --git a/sql-statements/sql-statement-rename-index.md b/sql-statements/sql-statement-rename-index.md index 8a9ed357e93c..b0b75a7dfd1e 100644 --- a/sql-statements/sql-statement-rename-index.md +++ b/sql-statements/sql-statement-rename-index.md @@ -84,5 +84,5 @@ Create Table: CREATE TABLE `t1` ( * [SHOW CREATE TABLE](/sql-statements/sql-statement-show-create-table.md) * [CREATE INDEX](/sql-statements/sql-statement-create-index.md) * [DROP INDEX](/sql-statements/sql-statement-drop-index.md) -* [SHOW INDEX](/sql-statements/sql-statement-show-index.md) +* [SHOW INDEXES](/sql-statements/sql-statement-show-indexes.md) * [ALTER INDEX](/sql-statements/sql-statement-alter-index.md) diff --git a/sql-statements/sql-statement-show-index.md b/sql-statements/sql-statement-show-index.md deleted file mode 100644 index 0d798f567119..000000000000 --- a/sql-statements/sql-statement-show-index.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: SHOW INDEX [FROM|IN] -summary: TiDB 数据库中 SHOW INDEX [FROM|IN] 的使用概况。 ---- - -# SHOW INDEX [FROM|IN] - -`SHOW INDEX [FROM|IN]` 语句是 [`SHOW INDEXES [FROM|IN]`](/sql-statements/sql-statement-show-indexes.md) 的别名。包含该语句提供了 MySQL 兼容性。 diff --git a/sql-statements/sql-statement-show-indexes.md b/sql-statements/sql-statement-show-indexes.md index 55c64cdc3832..4a6562b5cd56 100644 --- a/sql-statements/sql-statement-show-indexes.md +++ b/sql-statements/sql-statement-show-indexes.md @@ -1,6 +1,7 @@ --- title: SHOW INDEXES [FROM|IN] summary: TiDB 数据库中 SHOW INDEXES [FROM|IN] 的使用概况。 +aliases: ['/zh/tidb/v7.4/sql-statement-show-index/','/zh/tidb/v7.4/sql-statement-show-keys/'] --- # SHOW INDEXES [FROM|IN] diff --git a/sql-statements/sql-statement-show-keys.md b/sql-statements/sql-statement-show-keys.md deleted file mode 100644 index affb6ff1b9f5..000000000000 --- a/sql-statements/sql-statement-show-keys.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: SHOW KEYS [FROM|IN] -summary: TiDB 数据库中 SHOW KEYS [FROM|IN] 的使用概况。 ---- - -# SHOW KEYS [FROM|IN] - -`SHOW KEYS [FROM|IN]` 语句是 [`SHOW INDEXES [FROM|IN]`](/sql-statements/sql-statement-show-indexes.md) 语句的别名。包含该语句提供了 MySQL 兼容性。