hive数据库更新:
(1)set hive.exec.dynamic.partition.mode=nonstrict
(2)insert overwrite TABLE table_name partition (<分区字段1>,<分区字段2>) select 的语法插入和更新数据库。
需要注意的点是,分区表的字段要对应上。例子如下:更新表为 bt_inst.ttttt。


hive数据库更新:
(1)set hive.exec.dynamic.partition.mode=nonstrict
(2)insert overwrite TABLE table_name partition (<分区字段1>,<分区字段2>) select 的语法插入和更新数据库。
需要注意的点是,分区表的字段要对应上。例子如下:更新表为 bt_inst.ttttt。
本文标题:2018-11-16 hive数据库的更新方法
本文链接:https://www.haomeiwen.com/subject/maymfqtx.html
网友评论