To see the names of the columns of the table in HiveQl, the following hive conf property should be set to true.
hive> set hive.cli.print.header=true;
And after setting the above Hive conf property to “true”, execute your Hive query to get your output along with the column name:
hive> select * from table_name;
For more information regarding Hive, refer to the following video: