hive 操作

show databases ;
use default;
show tables ;
create table student(id int, name string) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t';
load data local inpath '/opt/datas/student.txt'into table student ;
select * from student ;
select id from student ;

posted @ 2019-01-05 22:48  流星小子  阅读(85)  评论(0编辑  收藏  举报