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_r316337336
 
 

 ##########
 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.
+
+### Examples
+{% highlight sql %}
+-- Lists all the databases.
+SHOW DATABASES;
+-- Lists databases with name starting with string pattern `test`
+SHOW DATABSES LIKE `test*`;
 
 Review comment:
   @srowen Thanks a lot. Changed it.

----------------------------------------------------------------
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]

Reply via email to