2018-06-22 18:40:25 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="basic"]
|
2018-06-20 14:40:13 -04:00
|
|
|
[[sql-syntax-describe-table]]
|
|
|
|
=== DESCRIBE TABLE
|
|
|
|
|
2020-02-14 11:58:45 -05:00
|
|
|
.Synopsis:
|
2018-06-20 14:40:13 -04:00
|
|
|
[source, sql]
|
|
|
|
----
|
2019-04-22 09:22:41 -04:00
|
|
|
DESCRIBE
|
|
|
|
[table identifier | <1>
|
|
|
|
[LIKE pattern]] <2>
|
2018-06-20 14:40:13 -04:00
|
|
|
----
|
|
|
|
|
2018-09-08 09:23:43 -04:00
|
|
|
<1> single table identifier or double quoted es multi index
|
|
|
|
<2> SQL LIKE pattern
|
|
|
|
|
2018-06-20 14:40:13 -04:00
|
|
|
or
|
|
|
|
|
|
|
|
[source, sql]
|
|
|
|
----
|
2019-04-22 09:22:41 -04:00
|
|
|
DESC
|
|
|
|
[table identifier | <1>
|
|
|
|
[LIKE pattern]] <2>
|
2018-06-20 14:40:13 -04:00
|
|
|
----
|
|
|
|
|
2018-09-08 09:23:43 -04:00
|
|
|
<1> single table identifier or double quoted es multi index
|
|
|
|
<2> SQL LIKE pattern
|
2018-06-20 14:40:13 -04:00
|
|
|
|
2020-02-14 11:58:45 -05:00
|
|
|
*Description*: `DESC` and `DESCRIBE` are aliases to <<sql-syntax-show-columns>>.
|
2018-07-03 09:56:31 -04:00
|
|
|
|
2019-05-31 13:03:41 -04:00
|
|
|
[source, sql]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|
2019-03-25 09:22:59 -04:00
|
|
|
include-tagged::{sql-specs}/docs/docs.csv-spec[describeTable]
|
2018-07-03 09:56:31 -04:00
|
|
|
----
|