Just get column names from hive table

前端 未结 3 1697
独厮守ぢ
独厮守ぢ 2020-12-29 01:09

I know that you can get column names from a table via the following trick in hive:

hive> set hive.cli.print.header=true;
hive> select * from tablename         


        
3条回答
  •  北海茫月
    2020-12-29 02:08

    you could also do show columns in $table or see Hive, how do I retrieve all the database's tables columns for access to hive metadata

提交回复
热议问题