HIVE 自定义字段插入数据
环境介绍
① 环境说明
HIVE 2.1.0 + Hadoop 2.7.5
② 文章参考
只插入自定义字段(单条数据插入)
① 非分区表的插入方式
-- 建表语句
create table if not exists user_card_info_temp
(
user_id string comment '用户ID',
user_name string comment '用户姓名',
card_id string comment '卡券ID',
card_name string comment '卡券名称'
)
comment '用户卡券明细表'
stored as orc tblproperties ('orc.compress'='SNAPPY')
;
-- 自定义字段插入格式
INSERT INTO TABLE tabl