

# Amazon Athena 中的数据类型
<a name="data-types"></a>

运行 `CREATE TABLE` 时，您可以指定列名以及每列可以包含的数据类型。所创建的表存储在 AWS Glue Data Catalog 中。

为了促进与其他查询引擎的互操作性，Athena 对 DDL 语句（例如 `CREATE TABLE`）使用 [Apache Hive](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types) 数据类型名称。对于像 `SELECT`、`CTAS` 和 `INSERT INTO` 这样的 DML 查询，Athena 则使用 [Trino](https://trino.io/docs/current/language/types.html) 数据类型名称。下表显示了 Athena 支持的数据类型。如果 DDL 和 DML 类型在名称、可用性或语法方面存在差异，则会显示在不同的列中。


****  
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/athena/latest/ug/data-types.html)

**Topics**
+ [数据类型示例](data-types-examples.md)
+ [数据类型的注意事项](data-types-considerations.md)
+ [处理时间戳数据](data-types-timestamps.md)