Is there any way to get the column name along with the output while execute any query in Hive?

前端 未结 7 1194
醉话见心
醉话见心 2020-12-23 02:17

In Hive, when we do a query (like: select * from employee), we do not get any column names in the output (like name, age, salary that we would get in R

7条回答
  •  囚心锁ツ
    2020-12-23 03:03

    Set this property before executing your query :

    hive> set hive.cli.print.header=true;
    

提交回复
热议问题