如何使用Hive创建具有分区功能的表?
- 内容介绍
- 文章标签
- 相关推荐
本文共计84个文字,预计阅读时间需要1分钟。
Hive 创建分区表的SQL语句如下:
sqlCREATE TABLE table_name ( col1_name string comment '备用1', col2_name string comment '备用2', col3_name string comment '备用3', col4_name string comment '备用4')PARTITIONED BY ( partition1_name string)
hive新建分区表语句如下:
本文共计84个文字,预计阅读时间需要1分钟。
Hive 创建分区表的SQL语句如下:
sqlCREATE TABLE table_name ( col1_name string comment '备用1', col2_name string comment '备用2', col3_name string comment '备用3', col4_name string comment '备用4')PARTITIONED BY ( partition1_name string)
hive新建分区表语句如下:

