You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/08/21 18:31:27 UTC

[GitHub] [spark] dilipbiswal commented on a change in pull request #25526: [SPARK-28807][DOC] Document SHOW DATABASES in SQL Reference

dilipbiswal commented on a change in pull request #25526: [SPARK-28807][DOC] Document SHOW DATABASES in SQL Reference
URL: https://github.com/apache/spark/pull/25526#discussion_r316337229
 
 

 ##########
 File path: docs/sql-ref-syntax-aux-show-databases.md
 ##########
 @@ -19,4 +19,31 @@ license: |
   limitations under the License.
 ---
 
-**This page is under construction**
+### Description
+Lists the databases that match a optionally supplied string pattern. If no
+pattern is supplied then the command lists all the databases in the system.
+Please note that the usage of SCHEMAS and DATABASES are interchangable
+and mean the same thing.
+
+### Syntax
+{% highlight sql %}
+SHOW {DATABASES|SCHEMAS} [LIKE 'pattern']
+{% endhighlight %}
+
+### Parameters
+##### ***LIKE 'pattern'***:
+A string pattern that is used to match the databases. In pattern, * matches any number of characters.
 
 Review comment:
   @srowen changed to use backtick. Actually only "*" works as a wildcard for this statement.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org