The SA_SESSION.ROW_LABEL procedure returns the name of the row label associated with the policy for the current session.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL mode.
Syntax
SA_SESSION.ROW_LABEL (
policy_name IN VARCHAR)
RETURN VARCHAR;
Parameters
| Parameter | Description |
|---|---|
| policy_name | The policy name. You can query the POLICY_NAME column of the ALL_SA_POLICIES data dictionary view for existing policies. |
Examples
The following example returns the row label associated with shield_agent_policy:
SELECT SA_SESSION.ROW_LABEL ('shield_agent_policy') FROM DUAL;