
# 向量化引擎支持的数据类型
向量化引擎支持的数据类型如[表1]所示。
 表1向量化引擎支持的数据类型 
| 类别                    | 数据类型                             | 长度                                                   | 是否支持 |
|:---|:---|:---|:---|
| Numeric Types         | tinyint \[unsigned\]             | 1                                                    | 支持   |
| Numeric Types         | smallint \[unsigned\]            | 2                                                    | 支持   |
| Numeric Types         | mediumint \[unsigned\]           | 3                                                    | 支持   |
| Numeric Types         | integer \[unsigned\]             | 4                                                    | 支持   |
| Numeric Types         | bigint \[unsigned\]              | 8                                                    | 支持   |
| Numeric Types         | decimal                          | -1                                                   | 支持   |
| Numeric Types         | numeric                          | -1                                                   | 支持   |
| Numeric Types         | real                             | 4                                                    | 支持   |
| Numeric Types         | double precision                 | 8                                                    | 支持   |
| Numeric Types         | smallserial                      | 2                                                    | 支持   |
| Numeric Types         | serial                           | 4                                                    | 支持   |
| Numeric Types         | bigserial                        | 8                                                    | 支持   |
| Numeric Types         | largeserial                      | -1                                                   | 支持   |
| Monetary Types        | money                            | 8                                                    | 支持   |
| Boolean Types         | boolean                          | 1                                                    | 支持   |
| Character Types       | character varying(n), varchar(n) | -1                                                   | 支持   |
| Character Types       | character(n), char(n),nchar(n)   | n                                                    | 支持   |
| Character Types       | character、char                   | 1                                                    | 支持   |
| Character Types       | text                             | -1                                                   | 支持   |
| Character Types       | varchar2(n)                      | -1                                                   | 支持   |
| Character Types       | nvarchar2(n)                     | -1                                                   | 支持   |
| Character Types       | clob                             | -1                                                   | 支持   |
| Binary Types          | raw                              | -1                                                   | 支持   |
| Binary Types          | bytea                            | -1                                                   | 支持   |
| Bit String Types      | bit(n)                           | n                                                    | 支持   |
| Bit String Types      | bit varying(n)                   | -1                                                   | 支持   |
| Date/Time Types       | timestamp with time zone         | 8                                                    | 支持   |
| Date/Time Types       | timestamp without time zone      | 8                                                    | 支持   |
| Date/Time Types       | date                             | 4                                                    | 支持   |
| Date/Time Types       | time without time zone           | 8                                                    | 支持   |
| Date/Time Types       | time with time zone              | 12                                                   | 支持   |
| Date/Time Types       | interval                         | 16                                                   | 支持   |
| Network Address Types | cidr                             | 7 or 19                                              | 支持   |
| Network Address Types | inet                             | 7 or 19                                              | 支持   |
| XML Types             | xml                              | -1                                                   | 支持   |
| Other Types           | enum                             | enum 类型由若干个标签构成的列表，每一个标签值都是一个非空字符串，且字符串长度必须不超过63个字节。 | 支持   |
   
![](https://support.huaweicloud.com/distributed-devg-v8-gaussdb/public_sys-resources/note_3.0-zh-cn.png)
enum类型当前仅支持如下方式创建，详情请参见[CREATE TYPE](https://support.huaweicloud.com/distributed-devg-v8-gaussdb/gaussdb-12-0574.html#ZH-CN_TOPIC_0000002558946027)。
```
CREATE TYPE name AS ENUM (['label' [, ...]]);
```
