标签:oracle12c新特性 approx_count_distinct
Note:
The APPROX_COUNT_DISTINCT
function is available starting with Oracle Database 12c Release 1 (12.1.0.2).
用例:
求scott.emp表中一共有多少个部门
11g: SELECT COUNT(DISTINCT deptno) AS cnt FROM scott.emp 12c: SELECT APPROX_COUNT_DISTINCT(deptno) AS cnt FROM scott.emp
本文出自 “专注于Oracle性能调优” 博客,请务必保留此出处http://5073392.blog.51cto.com/5063392/1572092
oracle12c新特性 去重统计函数APPROX_COUNT_DISTINCT
标签:oracle12c新特性 approx_count_distinct
原文地址:http://5073392.blog.51cto.com/5063392/1572092