From eb247c2815c8f0505d1f2e3d26adfef107c65339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Tue, 21 Nov 2023 09:10:11 +0100 Subject: [PATCH] Remove duplicate docs for SHOW INDEX, SHOW KEYS in favor of SHOW INDEXES (#15364) --- TOC-tidb-cloud.md | 2 -- TOC.md | 2 -- sql-statements/sql-statement-drop-index.md | 2 +- sql-statements/sql-statement-rename-index.md | 2 +- sql-statements/sql-statement-show-index.md | 9 --------- sql-statements/sql-statement-show-indexes.md | 2 +- sql-statements/sql-statement-show-keys.md | 9 --------- 7 files changed, 3 insertions(+), 25 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-tidb-cloud.md b/TOC-tidb-cloud.md index af6484f2f5d72..cd73f2c2dd024 100644 --- a/TOC-tidb-cloud.md +++ b/TOC-tidb-cloud.md @@ -433,9 +433,7 @@ - [`SHOW ERRORS`](/sql-statements/sql-statement-show-errors.md) - [`SHOW FIELDS FROM`](/sql-statements/sql-statement-show-fields-from.md) - [`SHOW GRANTS`](/sql-statements/sql-statement-show-grants.md) - - [`SHOW INDEX`](/sql-statements/sql-statement-show-index.md) - [`SHOW INDEXES`](/sql-statements/sql-statement-show-indexes.md) - - [`SHOW KEYS`](/sql-statements/sql-statement-show-keys.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/TOC.md b/TOC.md index 8d0e921e47493..d0ee88bc7c9da 100644 --- a/TOC.md +++ b/TOC.md @@ -813,9 +813,7 @@ - [`SHOW 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`](/sql-statements/sql-statement-show-index.md) - [`SHOW INDEXES`](/sql-statements/sql-statement-show-indexes.md) - - [`SHOW KEYS`](/sql-statements/sql-statement-show-keys.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 613c35c528c59..aa18c34063005 100644 --- a/sql-statements/sql-statement-drop-index.md +++ b/sql-statements/sql-statement-drop-index.md @@ -63,7 +63,7 @@ Query OK, 0 rows affected (0.30 sec) ## See also -* [SHOW INDEX](/sql-statements/sql-statement-show-index.md) +* [SHOW INDEXES](/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 6d1c08d29edcc..9c27c09400131 100644 --- a/sql-statements/sql-statement-rename-index.md +++ b/sql-statements/sql-statement-rename-index.md @@ -59,5 +59,5 @@ The `RENAME INDEX` statement in TiDB is fully compatible with MySQL. If you find * [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 b4956b1a722ea..0000000000000 --- a/sql-statements/sql-statement-show-index.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: SHOW INDEX [FROM|IN] | TiDB SQL Statement Reference -summary: An overview of the usage of SHOW INDEX [FROM|IN] for the TiDB database. -aliases: ['/docs/dev/sql-statements/sql-statement-show-index/','/docs/dev/reference/sql/statements/show-index/'] ---- - -# SHOW INDEX [FROM|IN] - -This statement is an alias to [`SHOW INDEXES [FROM|IN]`](/sql-statements/sql-statement-show-indexes.md). It is included for compatibility with MySQL. diff --git a/sql-statements/sql-statement-show-indexes.md b/sql-statements/sql-statement-show-indexes.md index 7a71afe37a572..bf91b4f0df090 100644 --- a/sql-statements/sql-statement-show-indexes.md +++ b/sql-statements/sql-statement-show-indexes.md @@ -1,7 +1,7 @@ --- title: SHOW INDEXES [FROM|IN] | TiDB SQL Statement Reference summary: An overview of the usage of SHOW INDEXES [FROM|IN] for the TiDB database. -aliases: ['/docs/dev/sql-statements/sql-statement-show-indexes/','/docs/dev/reference/sql/statements/show-indexes/'] +aliases: ['/docs/dev/sql-statements/sql-statement-show-indexes/','/docs/dev/reference/sql/statements/show-indexes/', '/tidb/dev/sql-statement-show-index/', '/tidb/dev/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 6a6bf856acffe..0000000000000 --- a/sql-statements/sql-statement-show-keys.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: SHOW KEYS [FROM|IN] | TiDB SQL Statement Reference -summary: An overview of the usage of SHOW KEYS [FROM|IN] for the TiDB database. -aliases: ['/docs/dev/sql-statements/sql-statement-show-keys/','/docs/dev/reference/sql/statements/show-keys/'] ---- - -# SHOW KEYS [FROM|IN] - -This statement is an alias to [`SHOW INDEXES [FROM|IN]`](/sql-statements/sql-statement-show-indexes.md). It is included for compatibility with MySQL.