17.3. 管理 Hive
如果你又任何一种关系型数据库的使用经验,那么你将在这里看到非常熟悉的操作。 17.3.1.表管理 17.3.1.1.创建表 CREATETABLEmember(namestring,ageint,sexint); hive> CREATE TABLE member (name string, age int, sex int); OK Time taken: 0.687 seconds hive> 基于现有的数据建表 hive> create table newtable as select * from oldtable; 17.3.1.2.显示表 hive> SHOW TABLES; OK test Time taken: 0.041 seconds, Fetched: 1 row(s) hive> 通配符匹配表名称 show tables '*t*'; 17.3.1.3.删除表 hive> DROP TABLE test; OK Time taken: 1.337 seconds hive> 17.3.1.4.查看表结构 hive>...