Raw columns

Raw columns can be of fixed or variable length and are similar to the string fields.

You can define a record field that is a collection of untyped bytes, of fixed or variable length. You give the field data type raw. The definition for a raw field is similar to that of a string field, as shown in the following examples:


record (var1:raw[];) // variable-length raw field
record (var2:raw;) // variable-length raw field; same as raw[]
record (var3:raw[40];) // fixed-length raw field
record (var4[5]:raw[40];)// fixed-length vector of raw fields

You can specify the maximum number of bytes allowed in the raw field with the optional property max, as shown in the example below:


record (var7:raw[max=80];)

The length of a fixed-length raw field must be at least 1.