SA_SESSION.ROW_LABEL returns the name of the row label associated with the current session's policy.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
SA_SESSION.ROW_LABEL (
policy_name IN VARCHAR)
RETURN VARCHAR;
Parameters
| Parameter | Description |
|---|---|
| policy_name | Specifies the policy. To find existing policies, query the POLICY_NAME column in the ALL_SA_POLICIES data dictionary view. |
Examples
The following example returns the row label associated with the shield_agent_policy policy.
SELECT SA_SESSION.ROW_LABEL ('shield_agent_policy') FROM DUAL;
