复杂的数据类型
create table teen(id int,name string,gf Array<string>) row format delimited fields terminated by " " collection items terminated by ",";
create table t_map(id int,name string,info Map<string,string>) row format delimited fields terminated by " " collection items terminated by "," map keys terminated by ":";
create table t_struct(id int,name string,address struct<province:string,city:string,contry:string>) row format delimited fields terminated by " " collection items terminated by ",";
//多种数据类型
create table complex(id int,name string,movies Array<string>,info Map<string,string>,address struct<province:string,city:string>) row format delimited fields terminated by " " collection items terminated by "," map keys terminated by ":";
作为一个真正的程序员,首先应该尊重编程,热爱你所写下的程序,他是你的伙伴,而不是工具。