elasticsearch/docs/reference/sql/language/syntax/commands/show-columns.asciidoc
James Rodewig f56a0f4b66
[DOCS] Remove testenv annotations from doc snippet tests (#80023)
Removes `testenv` annotations and related code. These annotations originally let you skip x-pack snippet tests in the docs. However, that's no longer possible.

Relates to #79309, #31619
2021-11-05 18:38:50 -04:00

25 lines
515 B
Text

[role="xpack"]
[[sql-syntax-show-columns]]
=== SHOW COLUMNS
.Synopsis:
[source, sql]
----
SHOW COLUMNS [ FROM | IN ]?
[table identifier | <1>
[LIKE pattern] ] <2>
----
<1> single table identifier or double quoted es multi index
<2> SQL LIKE pattern
See <<sql-index-patterns, index patterns>> for more information about
patterns.
*Description*: List the columns in table and their data type (and other attributes).
[source, sql]
----
include-tagged::{sql-specs}/docs/docs.csv-spec[showColumns]
----