建库
======
1. 创建建库test
create table test;
2. 没有test库,就创建库
create table if not exists test;
设置显示
========
1. 设置显示当前库名称
set hive.cli.print.current.db=true;
2. 设置查询时显示表头(select查询时可以显示列名称)
set hive.cli.print.header=true;
建库
======
1. 创建建库test
create table test;
2. 没有test库,就创建库
create table if not exists test;
设置显示
========
1. 设置显示当前库名称
set hive.cli.print.current.db=true;
2. 设置查询时显示表头(select查询时可以显示列名称)
set hive.cli.print.header=true;