Previous Topic: SQL Schema ConsiderationsNext Topic: SQL Access to Non-SQL Databases


SQL DML Statements Operating on Non-SQL-defined Records

INSERT

CA IDMS allows INSERT statements where the target table represents a non-SQL-defined record only if all sets with a membership option of AUTOMATIC in which the record participates as a member have been defined with a primary/foreign key declaration.

Note: For more information about primary and foreign keys in set definitions, see the CA IDMS Database Administration Guide.

Additionally, you cannot include the control field of an OCCURS DEPENDING ON structure in the insert column list. On an INSERT, its value is automatically set to 0.

Effect of INSERT on a Record

UPDATE

UPDATE statements where the target table is a non-SQL-defined database record are allowed. Successful execution of an update operation, however, depends on both the definition options chosen and the current state of the database.

The control field of an OCCURS DEPENDING ON structure cannot be updated.

Effect of UPDATE on a Record

DELETE

DELETE statements where the target table represents a non-SQL-defined record, are allowed. Successful execution of such a statement depends both on the definition options chosen and the current state of the database.

Effect of DELETE on a Record

SELECT

SELECT statements where one or more tables named in the FROM parameter represent non-SQL defined records are always allowed.

Column values are established as follows: