Creating Database Table Using Hive Query Language (HQL) Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Hive is a data warehouse solution built on top of Hadoop. In Hive data is managed at Hadoop Distributed file system (HDFS). In this schema, on reading no constraint check is required as it is required in RDBMS. It is particularly meant to work with a very large dataset. Hive uses query language known as Hive Query Language (HQL). Steps to Create Table using HQL on Unix: Step 1: Write the command "hive" for creating a database. Step 2: Create a new database. hive(default)> create database name_of_database > ; Step 3: To see all the databases present in the hive write command: hive(default)>show databasesStep 4: To use the database created in step 2 write the command: hive(default)>use name_of_database;Step 5: For creating a table, use the following command: hive(name_of_database)> create table table_name > ( > id int, > name string, > city string >); Step 6: Table is created and to insert records in the table write command: hive(name_of_database)> insert into table table_name > values (101,'Ayush','Saxena'); After pressing enter Hive query will automatically trigger the MapReduce job and processing will start. Step 7: To display all records present in the table write the query: >select * from table_name; Comment More infoAdvertise with us Next Article Apache Hive - Getting Started With HQL Database Creation And Drop Database K khushi_pandey Follow Improve Article Tags : Linux-Unix Hadoop Apache-Hive Similar Reads How to Create Table in Hive? In Apache Hive we can create tables to store structured data so that later on we can process it. The table in the hive is consists of multiple columns and records. The table we create in any database will be stored in the sub-directory of that database. The default location where the database is sto 3 min read Database Operations in HIVE Using CLOUDERA - VMWARE Work Station We are going to create a database and create a table in our database. And will cover Database operations in HIVE Using CLOUDERA - VMWARE Work Station. Let's discuss one by one. Introduction: Hive is an ETL tool that provides an SQL-like interface between the user and the Hadoop distributed file syst 2 min read Apache Hive - Getting Started With HQL Database Creation And Drop Database Pre-requisite: Hive 3.1.2 Installation, Hadoop 3.1.2 Installation HiveQL or HQL is a Hive query language that we used to process or query structured data on Hive. HQL syntaxes are very much similar to MySQL but have some significant differences. We will use the hive command, which is a bash shell sc 3 min read Hive - Load Data Into Table Hive tables provide us the schema to store data in various formats (like CSV). Hive provides multiple ways to add data to the tables. We can use DML(Data Manipulation Language) queries in Hive to import or add data to the table. One can also directly put the table into the hive with HDFS commands. I 3 min read Apache HIVE - Database Options Apache hive is a data-warehousing tool built on top of Hadoop. The structured data can be handled with the Hive query language. In this article, we are going to see options that are available with databases in the Hive. The database is used for storing information. The hive will create a directory f 4 min read Hive - Alter Database Apache Hive comes with an already created database with the name default. The default database can not be altered in the Hive because it is restricted. For every successfully created database, the Alteration can be done as per the user requirement. Alteration on the database is made to change its ex 3 min read Like