DB2 Version 9.7 for Linux, UNIX, and Windows

SECLABEL_TO_CHAR scalar function

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

The schema is SYSIBM.

The SECLABEL_TO_CHAR function accepts a security label and returns a string that contains all elements in the security label. The string is in the security label string format.

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
An expression that returns a security label value that is valid for the security policy named by security-policy-name (SQLSTATE 4274I). The expression must return a value that is a built-in SYSPROC.DB2SECURITYLABEL distinct type.

Notes

Example: