OpenSearch/docs/reference/sql/language/syntax/commands/show-columns.asciidoc

29 lines
568 B
Plaintext
Raw Normal View History

2018-06-22 18:40:25 -04:00
[role="xpack"]
[testenv="basic"]
[[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
2018-09-04 12:05:21 -04:00
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",subs="attributes,callouts,macros"]
----
include-tagged::{sql-specs}/docs/docs.csv-spec[showColumns]
----