Insert data into hive table

前端 未结 6 1158
梦毁少年i
梦毁少年i 2021-02-04 06:22

Using a Cygwin distribution, I\'ve installed Hadoop 0.20.3 and Hive 0.11.0.

First of all, I don\'t understand how to use the Hive CLI:

hive> show tabl         


        
6条回答
  •  别跟我提以往
    2021-02-04 07:03

    You can insert new data into table by two ways.

    1. Load the data of a file into table using load command.

      LOAD DATA [LOCAL] INPATH 'filepath' [OVERWRITE] INTO TABLE tablename.
      
    2. You can insert new data into table by using select query.

      INSERT INTO table tablename1 select columnlist FROM secondtable;
      

提交回复
热议问题