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