Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

In hive how to get the query result in variable(hiveconf)

$
0
0

Hi All,

I am executing hql file through shall commend. my query output should be stored in hiveconf variable. So that i will use the variable in other query.
basically i am from sql server background. In sql server we use do like this.

Declare @cnt as int;
select @cnt=count(1) from table;

so that @cnt will be used several place.

I don’t how to achieve this. can anyone help me.

Thanks
venkadesan


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>