-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-28806] [DOCS] [FOLLOW-UP] Remove unneeded HTML from the MD file #28414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
|
||
| <dl> | ||
| <dt><code><em>table_identifier</em></code></dt> | ||
| <dd> | ||
| * **table_identifier** | ||
|
|
||
| Specifies the table name of an existing table. The table may be optionally qualified | ||
| with a database name.<br><br> | ||
| <b>Syntax:</b> | ||
| <code> | ||
| { IN | FROM } [ database_name . ] table_name | ||
| </code><br><br> | ||
| <b>Note:</b> | ||
| Keywords <code>IN</code> and <code>FROM</code> are interchangeable. | ||
| </dd> | ||
| <dt><code><em>database</em></code></dt> | ||
| <dd> | ||
| 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. <br><br> | ||
| <b>Syntax:</b> | ||
| <code> | ||
| { IN | FROM } database_name | ||
| </code><br><br> | ||
| <b>Note:</b> | ||
| Keywords <code>IN</code> and <code>FROM</code> are interchangeable. | ||
| </dd> | ||
| </dl> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let us avoid using HTML if possible. |
||
| is specified. 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. | ||
|
|
||
| ### Examples | ||
|
|
||
| {% highlight sql %} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can directly use ```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) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unneeded space. |
||
| * [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) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: removed
Please note that