You must READ or CREATE an entity before you UPDATE it. It is also possible for the view being acted upon to be a persistent view READ or CREATEd by an earlier action block.
When using an UPDATE statement, add appropriate READ and CREATE entity actions to the Action Diagram. Use SET to change attribute values.
The UPDATE action statement has the following format:
UPDATE entity-view-1 [SET attribute-view-1 TO expression ] ... [REMOVE attribute-view-2]... [ASSOCIATE WITH entity-view-2 WHICH relationship IT]... [DISASSOCIATE FROM entity-view-3 WHICH relationship-2 IT]... [TRANSFER FROM entity-view-4 WHICH relationship-3 IT TO entity-view-4 WHICH relationship-4 IT]... WHEN successful action-statement-list WHEN not unique action-statement-list
Downstream Effects: The generated code eliminates the need to search the DBMS for a record to be UPDATEd when the following conditions occur:
|
Copyright © 2014 CA.
All rights reserved.
|
|