Databases in Hive
1.如果在hive中未定义数据库的话,这个“default”作为默认的数据库。
2.创建数据库的语法很简单:
hive> create databasefinancials;
如果financials存在的话,就会抛出错误,可以这样:
hive> create databases IF NOT EXISTS financials;
3.在“database”相关命令行可以使用“schema”代替“database”。</
Databases in Hive
1.如果在hive中未定义数据库的话,这个“default”作为默认的数据库。
2.创建数据库的语法很简单:
hive> create databasefinancials;
如果financials存在的话,就会抛出错误,可以这样:
hive> create databases IF NOT EXISTS financials;
3.在“database”相关命令行可以使用“schema”代替“database”。</