2018-06-23 06:40:25 +08:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="basic"]
|
2018-06-21 02:40:13 +08:00
|
|
|
[[sql-syntax-show-columns]]
|
|
|
|
=== SHOW COLUMNS
|
|
|
|
|
|
|
|
.Synopsis
|
|
|
|
[source, sql]
|
|
|
|
----
|
2019-04-22 21:22:41 +08:00
|
|
|
SHOW COLUMNS [ FROM | IN ]?
|
|
|
|
[table identifier | <1>
|
|
|
|
[LIKE pattern] ] <2>
|
2018-06-21 02:40:13 +08:00
|
|
|
----
|
|
|
|
|
2018-09-04 21:54:10 +08:00
|
|
|
<1> single table identifier or double quoted es multi index
|
|
|
|
<2> SQL LIKE pattern
|
|
|
|
|
2018-09-05 00:05:21 +08:00
|
|
|
See <<sql-index-patterns, index patterns>> for more information about
|
2018-09-04 21:54:10 +08:00
|
|
|
patterns.
|
|
|
|
|
2018-06-21 02:40:13 +08:00
|
|
|
.Description
|
|
|
|
|
|
|
|
List the columns in table and their data type (and other attributes).
|
2018-07-03 21:56:31 +08:00
|
|
|
|
2019-06-01 01:03:41 +08:00
|
|
|
[source, sql]
|
2018-07-03 21:56:31 +08:00
|
|
|
----
|
2019-03-25 21:22:59 +08:00
|
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[showColumns]
|
2018-07-03 21:56:31 +08:00
|
|
|
----
|
2018-09-04 21:54:10 +08:00
|
|
|
|