删除(在已经创建完成的表基础上)
建表以及设置显示当前库名称操作:hive设置显示当前库名称_qq_58392257的博客-CSDN博客
====
1. 删除视图
1. drop view v_t1; 2. drop view if exists v_t1;
2. 删除表
1. drop table t2; 2. drop table if exists t2;
3. 删除库
drop database if exists test; 这个只能删除为空的库
4. 删除库及库中的表及视图
drop database if exists test cascade;