ClickHouse/docs/en/sql-reference/statements/describe-table.md
2020-07-23 23:02:18 +03:00

771 B
Raw Blame History

toc_priority toc_title
44 DESCRIBE

DESCRIBE TABLE Statement

DESC|DESCRIBE TABLE [db.]table [INTO OUTFILE filename] [FORMAT format]

Returns the following String type columns:

  • name — Column name.
  • type— Column type.
  • default_type — Clause that is used in default expression (DEFAULT, MATERIALIZED or ALIAS). Column contains an empty string, if the default expression isnt specified.
  • default_expression — Value specified in the DEFAULT clause.
  • comment_expression — Comment text.

Nested data structures are output in “expanded” format. Each column is shown separately, with the name after a dot.