在Hive世界,中文注释不再是乱码而困扰! 通过简单配置,告别乱码烦恼。
我们话不多说,直接用一个实际的案例来演示一下。
案例演示
1.我们先创建数据库, 切库。
create database test;
use test;
2. 创建内部表, 这里我们用王者荣耀的射手英雄来创一个表。
create table t_archer_inner(
id int comment 'ID',
name string comment '英雄',
hp_max int comment '最大生命',
mp_max int comment '最大法力',
attack_max int comment '最高物攻',
defense_max int comment '最大物防',
attack_range string comment '攻击范围',
role_main string comment '主要定位',
role_assist string comment '次要定位'
) comment '射手表'
row format delimited fields terminated by '\t';
然后我们在浏览器打开


1328

被折叠的 条评论
为什么被折叠?



