apache hive - Hive Create Database - hive tutorial - hadoop hive - hadoop hive - hiveql
apache hive related article tags - hive tutorial - hadoop hive - hadoop hive - hiveql - hive hadoop - learnhive - hive sql
What is Hive?
- Hive is a database technology that can define databases and tables to analyze structured data.
- The theme for structured data analysis is to store the data in a tabular manner, and pass queries to analyze it.
- This hive tutorial explains how to create Hive database.
- Hive contains a default database named default.
learn hive - hive tutorial - mysql vs hiveql - hive programs - hive examples
How to Create Database in Hive?
Create Database Statement
- Create Database is a statement used to create a database in Hive.
- A database in Hive is a namespace or a collection of tables.
learn hive - hive tutorial - hive create database - hive programs - hive examples
Syntax:
- Here, IF NOT EXISTS is an optional clause, which notifies the user that a database with the same name already exists.
- We can use SCHEMA in place of DATABASE in this command.
- The following query is executed to create a database named userdb:
- or
- The following query is used to verify a databases list:
apache hive - learn hive - hive tutorial - hive create database - hive example
apache hive related article tags - hive tutorial - hadoop hive - hadoop hive - hiveql - hive hadoop - learnhive - hive sql
JDBC Program
- The JDBC program is used to create a database and hence the program is given below.
- The commands are used to compile and execute this program.