![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
文章平均质量分 68
大可duck
这个作者很懒,什么都没留下…
展开
-
Hive函数
内置函数查看系统自带的函数show funcations;显示自带函数的用法desc funcation upper;详细显示自带函数的用法desc funcation extended upper;常用内置函数字符串连接函数select concat(‘abc’,‘def’,‘gh’);带分隔符的字符串连接函数select concat_ws(’,’,‘abc’,‘def’,‘gh’);cast类型转换select cast(1.5 as cnt);get_jso原创 2021-04-14 21:42:00 · 117 阅读 · 0 评论 -
hive分区表操作
分区表的操作在hive中,可以把大的数据,按照每月,或者天进行切分成一个个的小的文件,存放在不同的文件夹中创建分区表语法create table score(s_id string,c_id string,s_score int) partitioned by (month string) row format delimited fields terminated by ‘\t’;创建一个表带多个分区create table score2(s_id string,c_id string,s原创 2021-04-08 23:40:57 · 683 阅读 · 0 评论 -
hive数据库表基本操作
查看所有的数据库show databases;创建数据库create database if not exists myhive;use myhive;说明:hive的表的存放位置模式是由hive-site.xml当中的一个数据指定的<name>hive.metastore.warehouse.dir<\name><value>/user/hive/warehouse<\value>创建数据库并指定位置create databa原创 2021-04-07 23:21:05 · 1018 阅读 · 0 评论