# 概述
M-Compatibility支持的数据类型有：
- 布尔类型：BOOLEAN/BOOL。详细介绍请参见[布尔类型](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0609.html)。
- 二进制类型：BINARY、VARBINARY、TINYBLOB、BLOB、MEDIUMBLOB、LONGBLOB。详细介绍请参见[表1](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0610.html#ZH-CN_TOPIC_0000002793699323__zh-cn_topic_0000001783245289_table181541055181410)。
- 字符类型：CHAR、VARCHAR、TINYTEXT、TEXT、MEDIUMTEXT、LONGTEXT。详细介绍请参见[表1](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0611.html#ZH-CN_TOPIC_0000002764460748__zh-cn_topic_0000001783205069_table181541055181410)。
- 时间类型：DATE、TIME、TIMESTAMP、DATETIME、YEAR。详细介绍请参见[表1](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0612.html#ZH-CN_TOPIC_0000002764300144__zh-cn_topic_0000001736245148_table181541055181410)。
- 位串类型：BIT。详细介绍请参见[表1](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0613.html#ZH-CN_TOPIC_0000002793699155__zh-cn_topic_0000001736086016_table181541055181410)。

- 数值类型：TINYINT、SMALLINT、MEDIUMINT、INT/INTEGER、BIGINT、NUMERIC/DECIMAL、FLOAT、DOUBLE。详情介绍请参见[数值类型](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0614.html)。
- JSON类型：JSON。详细介绍请参见[表1](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0619.html#ZH-CN_TOPIC_0000002764300788__zh-cn_topic_0000001783205069_table181541055181410)。
- 枚举类型：ENUM。详细介绍请参见[表2](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0620.html#ZH-CN_TOPIC_0000002764460044__zh-cn_topic_0000001736085996_zh-cn_topic_0283137359_zh-cn_topic_0237121929_zh-cn_topic_0059777457_zh-cn_topic_0058966282_table40398258)。
- 集合类型：SET。详细介绍请参见[表2](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0621.html#ZH-CN_TOPIC_0000002793779369__zh-cn_topic_0000001736085996_zh-cn_topic_0283137359_zh-cn_topic_0237121929_zh-cn_topic_0059777457_zh-cn_topic_0058966282_table40398258)。
M-Compatibility支持数据类型间的类型转换，具体转化关系请参见[类型转换](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0622.html)。
M-Compatibility支持数据类型的相关约束具体请参见[MySQL兼容性M-Compatibility模式](https://support.huaweicloud.com/centralized-ref-v10-gaussdb/gaussdb-38-0781.html)。
