📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

BITMAP_XOR_COUNT



Counts the number of bits set to 1 in the bitmap by performing a logical XOR (exclusive OR) operation.

Syntax

BITMAP_XOR_COUNT( <bitmap> )

Examples

SELECT BITMAP_XOR_COUNT(TO_BITMAP('1, 3, 5')); ┌────────────────────────────────────────┐ │ bitmap_xor_count(to_bitmap('1, 3, 5')) │ ├────────────────────────────────────────┤ │ 3 │ └────────────────────────────────────────┘

Was this page helpful?