1,创建一个简单的内部表:
create database if not exists testDataBase;
[add jar /opt/cloudera/parcels/CDH/lib/hive/lib/hive-contrib-0.10.0-cdh4.4.0.jar]
use testDataBase;
create table if not exists testTable(
column1 int,
column2 string)
stored as textfile;
2,为表新增一列
alter table testTable add columns (newcolumn boolean);
3,查看创建表的命令
show create table pageview