show-columns.asciidoc 531 B

12345678910111213141516171819202122232425262728
  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
  17. List the columns in table and their data type (and other attributes).
  18. [source, sql]
  19. ----
  20. include-tagged::{sql-specs}/docs/docs.csv-spec[showColumns]
  21. ----