show-columns.asciidoc 738 B

123456789101112131415161718192021222324252627282930
  1. [role="xpack"]
  2. [[sql-syntax-show-columns]]
  3. === SHOW COLUMNS
  4. .Synopsis:
  5. [source, sql]
  6. ----
  7. SHOW COLUMNS
  8. [CATALOG identifier]? <1>
  9. [INCLUDE FROZEN]? <2>
  10. [FROM | IN]
  11. [table_identifier | <3>
  12. LIKE pattern] <4>
  13. ----
  14. <1> Catalog (cluster) identifier. Supports wildcards (`*`).
  15. <2> Whether or not to include frozen indices.
  16. <3> Single table (index or data stream) identifier or double-quoted multi-target pattern.
  17. <4> SQL LIKE pattern matching table names.
  18. See <<sql-index-patterns, index patterns>> for more information about
  19. patterns.
  20. *Description*: List the columns in table and their data type (and other attributes).
  21. [source, sql]
  22. ----
  23. include-tagged::{sql-specs}/docs/docs.csv-spec[showColumns]
  24. ----