Previous Topic: Null Values and Null Fields

Next Topic: NDB Transaction Management: Database Protection

Rules for Null Fields

There are several rules regarding null fields:

Using null fields, the previous example of a database containing supplier, order, and customer records can be built by inserting only supplier fields for supplier records, order fields for order records, and customer fields for customer records. The records are now disjoint. A retrieval by CUSTNO, for example, would only retrieve records containing the CUSTNO field, and so on for supplier and order.

When defining fields in an NDB, a field can be made mandatory by specifying NULLFIELD=NO.