adspace


Explain what is a Hive variable. What do we use it for?

Answer Posted / Sudil Kumar

A Hive variable is a placeholder that can hold a value during the execution of a query. It allows for dynamic SQL queries by allowing you to store and reuse values inside the query. Variables are declared using the SET command.nnExample: SET var_name = 'value'; SELECT var_name as var, column_name FROM table;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I delete the above index named index_bonuspay?

807


What is the stable version of Hive ?

2695


When to choose "External Table" in Hive?

867


Can We Change settings within Hive Session? If Yes, How?

859


What are the different types of tables available in Hive?

767


When we are using queries instead of scripting?

801


Where does the data of a Hive table gets stored?

750


How to skip header rows from a table in Hive?

907


What is a Hive variable? What for we use it?

880


When to use explode in Hive?

832