show-columns.asciidoc 533 B

1234567891011121314151617181920212223242526
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[sql-syntax-show-columns]]
  4. === SHOW COLUMNS
  5. .Synopsis:
  6. [source, sql]
  7. ----
  8. SHOW COLUMNS [ FROM | IN ]?
  9. [table identifier | <1>
  10. [LIKE pattern] ] <2>
  11. ----
  12. <1> single table identifier or double quoted es multi index
  13. <2> SQL LIKE pattern
  14. See <<sql-index-patterns, index patterns>> for more information about
  15. patterns.
  16. *Description*: List the columns in table and their data type (and other attributes).
  17. [source, sql]
  18. ----
  19. include-tagged::{sql-specs}/docs/docs.csv-spec[showColumns]
  20. ----