Insert rows in a cycle
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
insert rows into tables that form a cycle:
-
Insert rows into one of the tables that forms
the cycle, with
NULLvalues in the foreign key columns. If the foreign key isNULL, the database does not check for a match between the foreign key and the corresponding primary key. The insert succeeds. This is the referencing table. - Update or insert the values in the primary keys of the second, referenced table.
- Update the foreign key values of the previous table, the referencing table.
The following example shows how to insert or update
values into the employee table. This table forms
a single-table cycle. First insert NULL into the mgr_code column.
After you insert rows, update the values of the mgr_code column.
|