Update records
- Last Updated: July 13, 2021
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
To add records to a database, use the CREATE statement which places a newly created record in the
database. All fields in the record are set to the initial values specified in the
schema. The CREATE statement causes any CREATE trigger associated with the table to execute. This
trigger may set fields in the record to new values.
To delete records from a database, use the DELETE statement. The DELETE
statement causes any DELETE trigger associated with the
table to execute.
Use the ASSIGN statement or the Assignment (=) statement to update a database record. The
ASSIGN statement does not actually write records to
the database until the end of a transaction, after the record goes out of scope, or
after an explicit RELEASE.
The following code creates a new record in the Customer table:
|
For more information, see Adding and deleting records in OpenEdge Programming Interfaces.