1、
- hive> create table wyp
- > (id int, name string,
- > age int, tel string)
- > ROW FORMAT DELIMITED
- > FIELDS TERMINATED BY ' '
- > STORED AS TEXTFILE;
2、
- cat wyp.txt
- 1 wyp 25 13188888888888
- 2 test 30 13888888888888
- 3 zs 34 899314121
3、
load data local inpath 'wyp.txt' into table wyp;