Skip to content

Commit

Permalink
Link to comparison operators page
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessie212 authored and electrum committed Mar 4, 2022
1 parent 1822cfa commit cbd5ca3
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 7 deletions.
7 changes: 6 additions & 1 deletion docs/src/main/sphinx/sql/show-catalogs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ Description
-----------

List the available catalogs.
The ``LIKE`` clause can be used to restrict the list of catalog names.

:ref:`Specify a pattern <like_operator>` in the optional ``LIKE`` clause to
filter the results to the desired subset. For example, the following query
allows you to find catalogs that begin with ``t``::

SHOW CATALOGS LIKE 't%'
9 changes: 7 additions & 2 deletions docs/src/main/sphinx/sql/show-columns.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@ Synopsis
Description
-----------

List the columns in ``table`` along with their data type and other attributes.
The ``LIKE`` clause can be used to restrict the list of column names.
List the columns in a ``table`` along with their data type and other attributes.

:ref:`Specify a pattern <like_operator>` in the optional ``LIKE`` clause to
filter the results to the desired subset. For example, the following query
allows you to find columns ending in ``key``::

SHOW COLUMNS FROM nation LIKE '%key'
7 changes: 6 additions & 1 deletion docs/src/main/sphinx/sql/show-functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ Description
-----------

List all the functions available for use in queries.
The ``LIKE`` clause can be used to restrict the list of functions.

:ref:`Specify a pattern <like_operator>` in the optional ``LIKE`` clause to
filter the results to the desired subset. For example, the following query
allows you to find functions beginning with ``array``::

SHOW FUNCTIONS LIKE 'array%';
7 changes: 6 additions & 1 deletion docs/src/main/sphinx/sql/show-schemas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ Description
-----------

List the schemas in ``catalog`` or in the current catalog.
The ``LIKE`` clause can be used to restrict the list of schema names.

:ref:`Specify a pattern <like_operator>` in the optional ``LIKE`` clause to
filter the results to the desired subset. For example, the following query
allows you to find schemas that have ``3`` as the third character::

SHOW SCHEMAS FROM tpch LIKE '__3%'
7 changes: 6 additions & 1 deletion docs/src/main/sphinx/sql/show-session.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ Description
-----------

List the current :ref:`session properties <session-properties-definition>`.
The ``LIKE`` clause can be used to restrict the list of session properties.

:ref:`Specify a pattern <like_operator>` in the optional ``LIKE`` clause to
filter the results to the desired subset. For example, the following query
allows you to find session properties that begin with ``query``::

SHOW SESSION LIKE 'query%'

See also
--------
Expand Down
7 changes: 6 additions & 1 deletion docs/src/main/sphinx/sql/show-tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ Description
-----------

List the tables in ``schema`` or in the current schema.
The ``LIKE`` clause can be used to restrict the list of table names.

:ref:`Specify a pattern <like_operator>` in the optional ``LIKE`` clause to
filter the results to the desired subset.. For example, the following query
allows you to find tables that begin with ``p``::

SHOW TABLES FROM tpch.tiny LIKE 'p%';

0 comments on commit cbd5ca3

Please sign in to comment.