メインコンテンツまでスキップ
バージョン: 3.1

bitmap_andnot

説明​

lhs に存在し、rhs には存在しない bitmap 値を返し、新しい bitmap を返します。

構文​

bitmap_andnot(BITMAP lhs, BITMAP rhs)

例​

mysql> select bitmap_to_string(bitmap_andnot(bitmap_from_string('1, 3'), bitmap_from_string('2'))) cnt;
+------+
|cnt |
+------+
|1,3 |
+------+

mysql> select bitmap_to_string(bitmap_andnot(bitmap_from_string('1,3,5'), bitmap_from_string('1'))) cnt;
+------+
|cnt |
+------+
|3,5 |
+------+

キーワード​

BITMAP_ANDNOT, BITMAP

Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.