From d21377b724e9a0009bc56fe5d9d0801b4a754e37 Mon Sep 17 00:00:00 2001 From: gatorsmile Date: Wed, 29 Apr 2020 18:09:15 -0700 Subject: [PATCH 1/2] fix --- docs/sql-ref-syntax-aux-show-columns.md | 49 +++++++++++-------------- 1 file changed, 21 insertions(+), 28 deletions(-) diff --git a/docs/sql-ref-syntax-aux-show-columns.md b/docs/sql-ref-syntax-aux-show-columns.md index 8f73aac0e3a61..a6a51d333f71e 100644 --- a/docs/sql-ref-syntax-aux-show-columns.md +++ b/docs/sql-ref-syntax-aux-show-columns.md @@ -25,41 +25,34 @@ Return the list of columns in a table. If the table does not exist, an exception ### Syntax -{% highlight sql %} +```sql SHOW COLUMNS table_identifier [ database ] -{% endhighlight %} +``` ### Parameters -
-
table_identifier
-
+* **table_identifier** + Specifies the table name of an existing table. The table may be optionally qualified - with a database name.

- Syntax: - - { IN | FROM } [ database_name . ] table_name -

- Note: - Keywords IN and FROM are interchangeable. -
-
database
-
+ with a database name. + + **Syntax:** `{ IN | FROM } [ database_name . ] table_name` + + **Note:** Keywords `IN` and `FROM` are interchangeable. + +* **database** + Specifies an optional database name. The table is resolved from this database when it is specified. Please note that when this parameter is specified then table - name should not be qualified with a different database name.

- Syntax: - - { IN | FROM } database_name -

- Note: - Keywords IN and FROM are interchangeable. -
-
+ name should not be qualified with a different database name. + + **Syntax:** `{ IN | FROM } database_name` + + **Note:** Keywords `IN` and `FROM` are interchangeable. ### Examples -{% highlight sql %} +```sql -- Create `customer` table in `salesdb` database; USE salesdb; CREATE TABLE customer( @@ -96,9 +89,9 @@ SHOW COLUMNS IN customer IN salesdb; | name| |cust_addr| +---------+ -{% endhighlight %} +``` ### Related Statements - * [DESCRIBE TABLE](sql-ref-syntax-aux-describe-table.html) - * [SHOW TABLE](sql-ref-syntax-aux-show-table.html) +* [DESCRIBE TABLE](sql-ref-syntax-aux-describe-table.html) +* [SHOW TABLE](sql-ref-syntax-aux-show-table.html) From 88fe8b3e281c13317653380990fcd0ca353418fa Mon Sep 17 00:00:00 2001 From: Xiao Li Date: Wed, 29 Apr 2020 18:16:14 -0700 Subject: [PATCH 2/2] Update sql-ref-syntax-aux-show-columns.md --- docs/sql-ref-syntax-aux-show-columns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sql-ref-syntax-aux-show-columns.md b/docs/sql-ref-syntax-aux-show-columns.md index a6a51d333f71e..c8c90a9d343e7 100644 --- a/docs/sql-ref-syntax-aux-show-columns.md +++ b/docs/sql-ref-syntax-aux-show-columns.md @@ -43,7 +43,7 @@ SHOW COLUMNS table_identifier [ database ] * **database** Specifies an optional database name. The table is resolved from this database when it - is specified. Please note that when this parameter is specified then table + is specified. When this parameter is specified then table name should not be qualified with a different database name. **Syntax:** `{ IN | FROM } database_name`