2018-06-22 15:40:25 -07:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="basic"]
|
2018-06-20 21:40:13 +03:00
|
|
|
[[sql-syntax-show-tables]]
|
|
|
|
=== SHOW TABLES
|
|
|
|
|
|
|
|
.Synopsis
|
|
|
|
[source, sql]
|
|
|
|
----
|
|
|
|
SHOW TABLES [ LIKE? pattern<1>? ]?
|
|
|
|
----
|
|
|
|
|
|
|
|
<1> SQL match pattern
|
|
|
|
|
|
|
|
.Description
|
|
|
|
|
2018-07-03 16:56:31 +03:00
|
|
|
List the tables available to the current user and their type.
|
|
|
|
|
|
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
|
|
----
|
|
|
|
include-tagged::{sql-specs}/docs.csv-spec[showTables]
|
|
|
|
----
|
|
|
|
|
|
|
|
The `LIKE` clause can be used to restrict the list of names to the given pattern.
|
|
|
|
|
|
|
|
The pattern can be an exact match:
|
|
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
|
|
----
|
|
|
|
include-tagged::{sql-specs}/docs.csv-spec[showTablesLikeExact]
|
|
|
|
----
|
|
|
|
|
|
|
|
Multiple chars:
|
|
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
|
|
----
|
|
|
|
include-tagged::{sql-specs}/docs.csv-spec[showTablesLikeWildcard]
|
|
|
|
----
|
|
|
|
|
|
|
|
A single char:
|
|
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
|
|
----
|
|
|
|
include-tagged::{sql-specs}/docs.csv-spec[showTablesLikeOneChar]
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
Or a mixture of single and multiple chars:
|
|
|
|
["source","sql",subs="attributes,callouts,macros"]
|
|
|
|
----
|
|
|
|
include-tagged::{sql-specs}/docs.csv-spec[showTablesLikeMixed]
|
|
|
|
----
|