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

BITMAP_AND



Performs a bitwise AND operation on the two bitmaps.

Syntax

BITMAP_AND( <bitmap1>, <bitmap2> )

Examples

SELECT BITMAP_AND(BUILD_BITMAP([1,4,5]), BUILD_BITMAP([4,5]))::String; ┌───────────────────────────────────────────────────────────────────┐ │ bitmap_and(build_bitmap([1, 4, 5]), build_bitmap([4, 5]))::string │ ├───────────────────────────────────────────────────────────────────┤ │ 4,5 │ └───────────────────────────────────────────────────────────────────┘

Was this page helpful?