-
hive的函數圖
查看全部 -
含有null值的排序 null值默認是最小的
select empno,ename,sal,comm.from emp order by comm desc
查看全部 -
order by 使用序號,需要開啟一個參數
set hive.groupby.orderby.postion.alias=true
查看全部 -
order by 后面跟:列,表達式,別名,序號
select empno,ename,sal,sal*12 from emp order by sal*12
查看全部 -
hive的排序:
select empno,ename,sal from emp order by sal;
查看全部 -
hive的模糊查詢
select empno,ename,sal from emp where ename like 'S%'
轉義字符的用法
select empno,ename,sal from emp where ename like '%\\_%'
查看全部 -
簡單的fetch task的配置
查看全部 -
hive的distinct的用法[去重]
select distinct deptno from emp
查看全部 -
hive判斷某個字段是否為nu'l'l
select * from emp where com is null;
select * from emp where com is not null;
查看全部 -
hive轉變空值的函數(nvl)
查看全部 -
sqoop導入數據2
查看全部 -
sqoop導入數據
查看全部 -
load向分區表進行導入
查看全部 -
hive的hdfs的導入
查看全部 -
Hive的load語句使用2
查看全部
舉報