Bit array data types

Bit arrays are used for storing bit data (0s and 1s). A bit array is a type of array data structure that is used for efficient storage of an array of bits. A bit array is similar to a character string, except that the individual pieces are 0s (zeros) and 1s (ones) instead of characters. Typically, bit arrays are used to hold a string of Boolean values.

The bit array data types supported by SQL Anywhere include VARBIT and LONG VARBIT.


LONG VARBIT data type
VARBIT data type