huaxingao commented on a change in pull request #25885: [spark-28813][DOC][SQL]
Document SHOW CREATE TABLE in SQL Reference
URL: https://github.com/apache/spark/pull/25885#discussion_r326923906
##########
File path: docs/sql-ref-syntax-aux-show-create-table.md
##########
@@ -19,4 +19,39 @@ license: |
limitations under the License.
---
-**This page is under construction**
+### Description
+`SHOW CREATE TABLE` returns the `CREATE TABLE` statement that creates a given
table. `SHOW CREATE TABLE` on a non-existent table throws Exception.
+
+### Syntax
+{% highlight sql %}
+SHOW CREATE TABLE table_name
+{% endhighlight %}
+
+### Parameters
+<dl>
+ <dt><code><em>table_name</em></code></dt>
+ <dd>The name of the table to be used for SHOW CREATE TABLE.</dd>
+</dl>
+
+### Examples
+{% highlight sql %}
+CREATE TABLE test (c INT);
Review comment:
I pushed the changes to remote branch. Somehow it didn't show here. :(
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]