数据分析师
andrew_CS
这个作者很懒,什么都没留下…
展开
-
hivesql与MySQL的区别
1、hivesql没有update、insert into类的更新表或插入表的操作。 2、hiveSQL特殊字符拼接问题,如分号要先进行八进制的ASCII码转义。 MySQL:select concat(key,concat(';',key)) from dual; hivesql:select concat(key,concat('\073',key)) from dual; 3、hiv...原创 2019-10-22 16:04:04 · 5391 阅读 · 0 评论 -
SQL重复记录查询
1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断select*frompeoplewherepeopleIdin(selectpeopleIdfrompeoplegroupbypeopleIdhavingcount(peopleId)>1) 例二: select*fromtesttable whe...转载 2019-09-24 10:32:55 · 141 阅读 · 0 评论