SHOW COLUMNS

SHOW COLUMNS

Synopsis:

  1. SHOW COLUMNS
  2. [CATALOG identifier]?
  3. [INCLUDE FROZEN]?
  4. [FROM | IN]
  5. [table_identifier |
  6. LIKE pattern]

Catalog (cluster) identifier. Supports wildcards (*).

Whether or not to include frozen indices.

Single table (index or data stream) identifier or double-quoted multi-target pattern.

SQL LIKE pattern matching table names.

See index patterns for more information about patterns.

Description: List the columns in table and their data type (and other attributes).

  1. SHOW COLUMNS IN emp;
  2. column | type | mapping
  3. --------------------+---------------+---------------
  4. birth_date |TIMESTAMP |datetime
  5. dep |STRUCT |nested
  6. dep.dep_id |VARCHAR |keyword
  7. dep.dep_name |VARCHAR |text
  8. dep.dep_name.keyword|VARCHAR |keyword
  9. dep.from_date |TIMESTAMP |datetime
  10. dep.to_date |TIMESTAMP |datetime
  11. emp_no |INTEGER |integer
  12. first_name |VARCHAR |text
  13. first_name.keyword |VARCHAR |keyword
  14. gender |VARCHAR |keyword
  15. hire_date |TIMESTAMP |datetime
  16. languages |TINYINT |byte
  17. last_name |VARCHAR |text
  18. last_name.keyword |VARCHAR |keyword
  19. name |VARCHAR |keyword
  20. salary |INTEGER |integer