1.显示数据库
hive> show databases;
2.过滤显示查询的数据库
hive> show databases like ‘db_hive*‘; OK db_hive db_hive_1
1.显示数据库信息
hive> desc database db_hive; OK db_hive hdfs://hadoop102:9000/user/hive/warehouse/db_hive.db atguiguUSER
2.显示数据库详细信息,extended
hive> desc database extended db_hive; OK db_hive hdfs://hadoop102:9000/user/hive/warehouse/db_hive.db atguiguUSER
hive (default)> use db_hive;
原文:https://www.cnblogs.com/Tunan-Ki/p/11795723.html