Skip to Main Content
IBM Db2 11.1 Certification Guide
book

IBM Db2 11.1 Certification Guide

by Robert (Kent) Collins, Mohankumar Saraswatipura
June 2018
Intermediate to advanced content levelIntermediate to advanced
478 pages
10h 52m
English
Packt Publishing
Content preview from IBM Db2 11.1 Certification Guide

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Red Hat RHCSA 8 Cert Guide: EX200, 2nd Edition

Red Hat RHCSA 8 Cert Guide: EX200, 2nd Edition

Sander van Vugt

Publisher Resources

ISBN: 9781788626910Other