Previous Topic: Named Values

Next Topic: Boolean BIT STRING Access

Constraints

It is possible to specify a size constraint on a bit string type using the SIZE keyword. For example:

BIT STRING (SIZE(2.4))

The size refers to the maximum number of bits (not bytes) in the bit string. Internally, the minimum is rounded down, and the maximum rounded up, to the nearest multiple of 8.