DB2 Version 9.7 for Linux, UNIX, and Windows

SECLABEL scalar function

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

The schema is SYSIBM.

The SECLABEL function returns an unnamed security label with a data type of DB2SECURITYLABEL. Use the SECLABEL function to insert a security label with given component values without having to create 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-string
An expression that returns a valid representation of a security label 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: