Previous Topic: Delete Field Definitions

Next Topic: Back Up an NDB

Update a Field Definition

A field definition can be updated at any time. However, not all field attributes can be changed at any time. Some changes require the database to be empty (that is, just created or reset), or in LOAD MODE. Some field attribute alterations are prohibited.

The following field attributes can be changed at any time:

The following attribute can be changed if the field is not keyed (that is, KEY=NO):

The following attributes can be changed if the database is in the LOAD MODE or empty:

The following attributes can be changed if the database is empty:

The following attribute cannot be changed:

Note: A field can also be changed from KEY = N to KEY = Y by using the NDB ALTER command.