show-columns.asciidoc 561 B

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