DB2 Version 9.7 for Linux, UNIX, and Windows

SECLABEL_BY_NAME scalar function

Read syntax diagramSkip visual syntax diagram
>>-SECLABEL_BY_NAME--(--security-policy-name--,--security-label-name--)-><

The schema is SYSIBM.

The SECLABEL_BY_NAME function returns the specified security label. The security label returned has a data type of DB2SECURITYLABEL. Use this function to insert a named security label.

security-policy-name
A string that specifies a security policy that exists at the current server (SQLSTATE 42704). The string must be a character or graphic string constant or host variable.
security-label-name
An expression that returns the name of a security label that exists at the current server for the security policy named by security-policy-name (SQLSTATE 4274I). The expression must return a value that is a built-in CHAR, VARCHAR, GRAPHIC, or VARGRAPHIC data type.

Examples: