show-columns.asciidoc 553 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 ]? [ table identifier<1> | [ LIKE pattern<2> ] ]
  9. ----
  10. <1> single table identifier or double quoted es multi index
  11. <2> SQL LIKE pattern
  12. See <<sql-index-patterns, index patterns>> for more information about
  13. patterns.
  14. .Description
  15. List the columns in table and their data type (and other attributes).
  16. ["source","sql",subs="attributes,callouts,macros"]
  17. ----
  18. include-tagged::{sql-specs}/docs.csv-spec[showColumns]
  19. ----