一、场景描述
1、创建表语句:
hive> create table movie02( userID int comment '用户ID', movieID int comment '电影ID', rating int comment '电影评分', timestamped bigint comment '评分时间戳', movieName string comment '电影名字', movieType string comment '电影类型', sex string comment '性别', age int comment '年龄', occupation string comment '职业', zipcode string comment '邮政编码' ) comment '影评三表合一' row format delimited fields terminated by ","; OK Time taken: 0.207 seconds
2、查看创建的表结构:
第三列备注显示中文乱码:hive> desc movie02; OK userid int ??ID movieid int ??ID rating int ???? timestamped bigint ?????