
# DESC查询表结构
本章节主要介绍ClickHouse查询表结构的SQL基本语法和使用说明。
#### 基本语法
**DESC** \|**DESCRIBE** **TABLE** \[*database_name* .\]*table* \[**INTO**OUTFILE filename\] \[FORMAT format\]
#### 使用示例
例如查询表t1的表结构：
**desc t1;**
```
┌─name────┬─type─┬─default_type─┬─default_expression ┬─comment─┬─codec_expression─┬─ttl_expression─┐
│  id          │ UInt8  │                │                     │           │                    │                  │  
│  name        │ UInt8  │                │                     │           │                    │                  │ 
│  address     │ String │                │                     │           │                    │                  │
└───────┴────┴────────┴────────── ┴───── ┴──────────┴─────────┘
```
