跳到主要内容

system.columns

包含有关表列的信息。

DESC system.columns;
+--------------------+---------+------+---------+-------+
| 字段 | 类型 | 空值 | 默认值 | 额外 |
+--------------------+---------+------+---------+-------+
| name | VARCHAR || | |
| database | VARCHAR || | |
| table | VARCHAR || | |
| type | VARCHAR || | |
| default_kind | VARCHAR || | |
| default_expression | VARCHAR || | |
| is_nullable | BOOLEAN || false | |
| comment | VARCHAR || | |

+--------------------------+----------+---------------------+------------------+-------------------+--------------+--------------------+-------------+---------+
| 名称 | 数据库 || 列类型 | 数据类型 | 默认类型 | 默认表达式 | 可为空 | 注释 |
+--------------------------+----------+---------------------+------------------+-------------------+--------------+--------------------+-------------+---------+
| id | system | processes | String | VARCHAR | | || |
| type | system | processes | String | VARCHAR | | || |
| host | system | processes | Nullable(String) | VARCHAR | | || |
| user | system | processes | String | VARCHAR | | || |
| command | system | processes | String | VARCHAR | | || |
| database | system | processes | String | VARCHAR | | || |
| extra_info | system | processes | String | VARCHAR | | || |
| memory_usage | system | processes | Int64 | BIGINT | | || |
| data_read_bytes | system | processes | UInt64 | BIGINT UNSIGNED | | || |
| data_write_bytes | system | processes | UInt64 | BIGINT UNSIGNED | | || |
| scan_progress_read_rows | system | processes | UInt64 | BIGINT UNSIGNED | | || |
| scan_progress_read_bytes | system | processes | UInt64 | BIGINT UNSIGNED | | || |
| mysql_connection_id | system | processes | Nullable(UInt32) | INT UNSIGNED | | || |
....