摘要:        
mysql查询语句,通过limit来限制查询的行数。 例如: select name from usertb where age > 20 limit 0, 1; //限制从第一条开始,显示1条 select name from usertb where age > 20 limit 1; //同上    阅读全文
posted @ 2018-09-06 22:06
BoomOoO
阅读(6390)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1. 数据说明 (1) student表 hive> select * from student; # 学生ID 学生姓名 性别 年龄 所在系 # sid sname sex age dept 95002 Aiden female 19 IS 95017 Jacob female 18 IS 950    阅读全文
posted @ 2018-09-06 17:39
BoomOoO
阅读(2717)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1、 内部表:load data inpath <1.把文件移动到了/user/hive/warehouse/数据库名/表名/文件名 <2.Drop table:会删除/user/hive/warehouse/数据库名/表名文件名外部表:location ‘文件夹’<1.create table。。    阅读全文
posted @ 2018-09-06 11:27
BoomOoO
阅读(199)
评论(0)
推荐(0)
        
            
        
        
摘要:        
hive命令的3种调用方式 方式1:hive –f /root/shell/hive-script.sql(适合多语句) hive-script.sql类似于script一样,直接写查询命令就行 不进入交互模式,执行一个hive script 这里可以和静音模式-S联合使用,通过第三方程序调用,第三    阅读全文
posted @ 2018-09-06 11:20
BoomOoO
阅读(14634)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号