Table constraints

You can view, add and drop constraints defined in one table. Select the constraints tab in table properties form.

To create a new constraint:

Select new and a wizard is show.

You can select the type of constraint you want to define.

To define a primary key or unique constraint select the fields and click the create button, a constraint name can be entered, else a default constraint name is generated.

To define a foreign key select the source fields.

Then select the referenced table, fields and update and delete cascade action.

To define a check constraint (table level constraint) write a sql expression, you can use field names from the table.

Checking Update records option, a update is done to check all records passes the check constraint. If there are records that violates a constraint a backup and restore can fail.

See also:

Table operations index