SELECT SUM(HASH(STR_COL)), SUM(INT_COL), SUM(DOUBLE_COL) FROM FOO
你可能会说,如果真实值不一样,那么这个查询仍然可能产生匹配的值。这是有可能的,
例如下面的记录:
STR_COL INT_COL DOUBLE_COL
A 2 1
B 3 2
C 1 3
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.