Home > Notes > HIVE

create_DataBase_and_Drop_Database

HIVE

hive buit in operation
Hive Partition By _and _buecketing
Hive Partition By
HIVE VIEW
HiveQl_Part1
Hive_Built_In_Functions
Hive_QL_JOIN
Hive_Table_Operation

create_DataBase_and_Drop_Database

create_DataBase_and_Drop_Database

create DataBase :=> 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. The syntax for this statement is as follows: CREATE DATABASE|SCHEMA [IF NOT EXISTS] 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 command :=> CREATE DATABASE codeshunger; SHOW DATABASES; Dropping the database :=> DROP DATABASE IF EXISTS codeshunger;