首页 > 数据库 > NoSQL > hive创建外部分区表
drop table if exists itp_bsl_tab;
create external table itp_bsl_tab
(
version_no string comment '版本号',
wt_rt double comment '加权占比',
load_tm string comment '加载时间'
)comment '表说明'
PARTITIONED BY (hq_month_code string)
row format delimited fields terminated by '\001'
location '/result/fin_abc/bsl/itp_bsl_tab';
更多技术文章请关注公众号:BLT328
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31535951/viewspace-2153979/ ,如需转载,请注明出处,否则将追究法律责任。