Hive与MapReduce相关排序及自定义UDF函数(15)

  1. 可以使用sqoop等工具

常见的HQL语句

我们使用之前的数据库

select * from emp where sal > 3000;

select * from emp limit 5;

select distinct deptno from emp;

select * from emp where sal between 1300 and 3000;

select * from emp where sal >=1000 and  sal <= 3000;

select empnoename from emp where comm is null;

推荐阅读