How to delete and update a record in Hive

后端 未结 15 1372
梦如初夏
梦如初夏 2020-11-28 19:26

I have installed Hadoop, Hive, Hive JDBC. which are running fine for me. But I still have a problem. How to delete or update a single record using Hive because delete or upd

15条回答
  •  甜味超标
    2020-11-28 19:58

    To achieve your current need, you need to fire below query

    > insert overwrite table student 
    > select *from student 
    > where id <> 1;
    

    This will delete current table and create new table with same name with all rows except the rows that you want to exclude/delete

    I tried this on Hive 1.2.1

提交回复
热议问题