Select * from movierating
结果为空值。
我尝试了以下创建表查询:
CREATE TABLE movierating(id INT, movieid INT, rating INT, time string);
CREATE TABLE movierating(id INT, movieid INT, rating INT, time string) ROW FORMAT DELIMITED FIELDS TERMINATED BY ' ' stored as textfile;
尝试以下加载查询:
load data local inpath '/tmp/Movie-rating.txt' into table movierating;
load data local inpath '/tmp/Movie-rating.txt' OVERWRITE into table movierating;
“movie rating.txt”文件中的数据:(delimeter是tab)
1 123 3 881250949
2 125 4 881250123
1条答案
按热度按时间1yjd4xko1#
用于制表符分隔的数据
'\t'
作为字段分隔符: