Column masks

If the business requirement is to limit access or mask data at the column level, you can do so by using column masks. A user with SECADM authority can create column masks on a table by using the CREATE MASK statement. The basic syntax is:

CREATE <OR REPLACE> MASK [MaskName] ON [TableName]FOR COLUMN [ColumnName] RETURN [CaseExpression]<ENABLE | DISABLE>

To which the following applies:

  • MaskName: Identifies the name of the column mask, including the explicit or implicit qualifier.
  • TableName: Identifies the name of the table on which to create the column mask. It must not be: a nickname; a created or declared global temporary table, view, alias, or synonym; a typed table; or a system catalog table.
  • ColumnName: Identifies ...

Get IBM Db2 11.1 Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.