Varying-length rows with nulls for edit and validation routines
A varying-length column can allow null values. In basic row format, the value in the length field includes the length of the null indicator byte but does not include the length field itself.
DEPTNO | DEPTNAME | MGRNO | ADMRDEPT | LOCATION | |||
---|---|---|---|---|---|---|---|
C01 | 0013 | Information center | 00 | 000030 | A00 | 00 | New York |
An empty string has a length of one, a X'00' null indicator, and no data following.
In reordered row format, if a table has any varying-length
columns, with or without nulls, all fixed length columns are placed
at the beginning of the row, followed by the offsets to the varying
length columns, followed by the values of the varying length columns.