メインコンテンツまでスキップ

percentile_hash

percentile_hash

概要

PERCENTILE値としてDOUBLE値を構築します。

構文

PERCENTILE_HASH(x);

パラメータ

x: DOUBLE型のデータがサポートされています。

返り値

PERCENTILE値を返します。

mysql> select percentile_approx_raw(percentile_hash(234.234), 0.99);
+-------------------------------------------------------+
| percentile_approx_raw(percentile_hash(234.234), 0.99) |
+-------------------------------------------------------+
| 234.23399353027344 |
+-------------------------------------------------------+
1 row in set (0.00 sec)