INSERT
- Last Updated: December 18, 2023
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
If you have been granted DDM privileges on the DDM-configured fields of a table, you can
insert values into those fields using the INSERT statement. If you
are not authorized to unmask the fields in which you are inserting the data, the
insert operation fails.
You can use scalar subqueries (SSQ) to provide data for DDM-configured fields in an
INSERT statement only when you have permission to unmask those
fields.
Example
The following example illustrates the
If
INSERT statement for a DDM-configured
field.
|
Supplier.Phone is a DDM-configured field, the
query inserts:- Masked values for
Supplier.PhoneintoCustomer.Phoneif you are not authorized to unmaskSupplier.Phone. - Unmasked values of
Supplier.PhoneintoCustomer.Phoneif you are authorized to unmaskSupplier.Phone.
However, if
Customer.Phone is a DDM-configured field, the query:- Fails with an error, regardless of your privileges for
Supplier.Phone, if you are not authorized to unmaskCustomer.Phone. - Inserts the unmasked values of
Supplier.Phoneinto theCustomer.Phoneif you are authorized to unmask bothCustomer.PhoneandSupplier.Phone.