摘要: hive 课下练习 -- count(*),count(1),count(字段名)区别 select count(*) from score; -- 最慢的 一般不用它 select count(1) from score; -- 最快的 但是它会统计null值,需要注意。 select count 阅读全文
posted @ 2022-06-08 19:28 a-tao必须奥利给 阅读(53) 评论(0) 推荐(0)
摘要: hive-基本函数_窗口函数_行列转换_UDF_连续登录问题 SQL练习 1、count(*)、count(1) 、count('字段名') 区别 从执行结果来看 count(*)包括了所有的列,相当于行数,在统计结果的时候,不会忽略列值为NULL 最慢的 count(1)包括了忽略所有列,用1代表 阅读全文
posted @ 2022-06-08 19:19 a-tao必须奥利给 阅读(236) 评论(0) 推荐(0)