Skip to main content
Splits a large bitmap into multiple sub-bitmaps. This function is mainly used to export bitmaps. Bitmaps that are too large will exceed the maximum packet size allowed in the MySQL protocol. This function is supported from v2.5.

Syntax

Parameters

bitmap: The bitmap that needs to be split, required. length: The maximum length of each sub-bitmap, required. Bitmaps larger than this value will be split into multiple small bitmaps.

Return value

Returns multiple sub-bitmaps not larger than length.

Examples

Suppose there is a table t1, in which the c2 column is a BITMAP column.