apache hive - Hive Drop Database - hive tutorial - hadoop hive - hadoop hive - hiveql
Drop Database Statement
- Drop Database is a statement that drops all the tables and deletes the database.
- Its syntax is as follows:
apache hive related article tags - hive tutorial - hadoop hive - hadoop hive - hiveql - hive hadoop - learnhive - hive sql
Syntax
learn hive - hive tutorial - hive drop database - hive programs - hive examples
- The following queries given are used to drop a database.
- Hence we can assume that the database name is userdb
- The following query drops the database which is done using CASCADE.
- This means that dropping the respective tables before dropping the database.
- The following query given drops the database using SCHEMA.
- This clause was added in Hive 0.6.
JDBC Program
- The JDBC program to drop a database is given below.
Sample Code
- These are some of the commands which are given to compile and execute this program.